public class CategoryUpdateEvent extends ChannelEvent
Category
is updated in a guild.
The old category may not be present if categories are not stored.
This event is dispatched by Discord.
Constructor and Description |
---|
CategoryUpdateEvent(GatewayDiscordClient gateway,
ShardInfo shardInfo,
Category current,
Category old) |
Modifier and Type | Method and Description |
---|---|
Category |
getCurrent()
Get the current, new, version of the
Category that has been updated in this event. |
Optional<Category> |
getOld()
Gets the old version of the
Category that has been updated in this event, if present. |
String |
toString() |
getClient, getShardInfo
public CategoryUpdateEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, Category current, @Nullable Category old)
public Category getCurrent()
Category
that has been updated in this event.Category
.public Optional<Category> getOld()
Category
that has been updated in this event, if present.
This may not be available if Categories
are not stored.Category
, if present.