Class EmojisUpdateEvent
- java.lang.Object
-
- discord4j.core.event.domain.Event
-
- discord4j.core.event.domain.guild.GuildEvent
-
- discord4j.core.event.domain.guild.EmojisUpdateEvent
-
public class EmojisUpdateEvent extends GuildEvent
Dispatched when an emoji is added/deleted/or edited in a guild. Theemojisset includes ALL emojis of the guild.This event is dispatched by Discord.
- See Also:
- Guild Emojis Update
-
-
Constructor Summary
Constructors Constructor Description EmojisUpdateEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, long guildId, Set<GuildEmoji> emojis, Set<GuildEmoji> old)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<GuildEmoji>getEmojis()Gets a list of ALL emojis of theGuild.Mono<Guild>getGuild()Requests to retrieve theGuildwhose emojis have been updated.SnowflakegetGuildId()Optional<Set<GuildEmoji>>getOld()Gets a list of ALL old emojis of theGuild, if present.StringtoString()-
Methods inherited from class discord4j.core.event.domain.Event
getClient, getShardInfo
-
-
-
-
Constructor Detail
-
EmojisUpdateEvent
public EmojisUpdateEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, long guildId, Set<GuildEmoji> emojis, Set<GuildEmoji> old)
-
-
Method Detail
-
getGuild
public Mono<Guild> getGuild()
Requests to retrieve theGuildwhose emojis have been updated.
-
getEmojis
public Set<GuildEmoji> getEmojis()
Gets a list of ALL emojis of theGuild.- Returns:
- A list of ALL emojis of the
Guild.
-
getOld
public Optional<Set<GuildEmoji>> getOld()
Gets a list of ALL old emojis of theGuild, if present. This may not be available ifGuildEmojisare not stored.- Returns:
- A list of ALL old emojis of the
Guild.
-
-