UpdateEvent<Guild,TextChannel>public class GuildUpdateSystemChannelEvent extends GenericGuildUpdateEvent<TextChannel>
Guild changed.
Can be used to detect when a guild system channel changes and retrieve the old one
Identifier: system_channel
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
IDENTIFIER |
| Constructor | Description |
|---|---|
GuildUpdateSystemChannelEvent(JDA api,
long responseNumber,
Guild guild,
TextChannel oldSystemChannel) |
| Modifier and Type | Method | Description |
|---|---|---|
TextChannel |
getNewSystemChannel() |
The new system channel.
|
TextChannel |
getOldSystemChannel() |
The previous system channel.
|
getJDA, getResponseNumbergetGuildgetEntity, getNewValue, getOldValue, getPropertyIdentifier, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetEntityTypepublic static final java.lang.String IDENTIFIER
public GuildUpdateSystemChannelEvent(JDA api, long responseNumber, Guild guild, TextChannel oldSystemChannel)
public TextChannel getOldSystemChannel()
public TextChannel getNewSystemChannel()