Class StickersUpdateEvent
- java.lang.Object
-
- discord4j.core.event.domain.Event
-
- discord4j.core.event.domain.guild.GuildEvent
-
- discord4j.core.event.domain.guild.StickersUpdateEvent
-
public class StickersUpdateEvent extends GuildEvent
Dispatched when an sticker is added/deleted/or edited in a guild. Thestickers
set includes ALL stickers of the guild.This event is dispatched by Discord.
- See Also:
- Guild Stickers Update
-
-
Constructor Summary
Constructors Constructor Description StickersUpdateEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, long guildId, Set<GuildSticker> stickers, Set<GuildSticker> old)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Mono<Guild>
getGuild()
Requests to retrieve theGuild
whose stickers have been updated.Snowflake
getGuildId()
Optional<Set<GuildSticker>>
getOld()
Gets a list of ALL old stickers of theGuild
, if present.Set<GuildSticker>
getStickers()
Gets a list of ALL stickers of theGuild
.String
toString()
-
Methods inherited from class discord4j.core.event.domain.Event
getClient, getShardInfo
-
-
-
-
Constructor Detail
-
StickersUpdateEvent
public StickersUpdateEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, long guildId, Set<GuildSticker> stickers, Set<GuildSticker> old)
-
-
Method Detail
-
getGuild
public Mono<Guild> getGuild()
Requests to retrieve theGuild
whose stickers have been updated.
-
getStickers
public Set<GuildSticker> getStickers()
Gets a list of ALL stickers of theGuild
.- Returns:
- A list of ALL stickers of the
Guild
.
-
getOld
public Optional<Set<GuildSticker>> 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
.
-
-