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, getResponseNumber
getGuild
getEntity, getNewValue, getOldValue, getPropertyIdentifier, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getEntityType
public static final java.lang.String IDENTIFIER
public GuildUpdateSystemChannelEvent​(JDA api, long responseNumber, Guild guild, TextChannel oldSystemChannel)
public TextChannel getOldSystemChannel()
public TextChannel getNewSystemChannel()