Class StickersUpdateEvent
java.lang.Object
discord4j.core.event.domain.Event
discord4j.core.event.domain.guild.GuildEvent
discord4j.core.event.domain.guild.StickersUpdateEvent
Dispatched when an sticker is added/deleted/or edited in a guild. The
stickers
set includes ALL stickers of the
guild.
This event is dispatched by Discord.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStickersUpdateEvent
(GatewayDiscordClient gateway, ShardInfo shardInfo, long guildId, Set<GuildSticker> stickers, Set<GuildSticker> old) -
Method Summary
Methods inherited from class discord4j.core.event.domain.Event
getClient, getShardInfo
-
Constructor Details
-
StickersUpdateEvent
public StickersUpdateEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, long guildId, Set<GuildSticker> stickers, Set<GuildSticker> old)
-
-
Method Details
-
getGuildId
- Returns:
- The ID of the
Guild
.
-
getGuild
Requests to retrieve theGuild
whose stickers have been updated. -
getStickers
Gets a list of ALL stickers of theGuild
.- Returns:
- A list of ALL stickers of the
Guild
.
-
getOld
Gets a list of ALL old stickers of theGuild
, if present. This may not be available ifGuildSticker
are not stored.- Returns:
- A list of ALL old stickers of the
Guild
.
-
toString
-