Package discord4j.core.event.domain
Class WebhooksUpdateEvent
- java.lang.Object
-
- discord4j.core.event.domain.Event
-
- discord4j.core.event.domain.WebhooksUpdateEvent
-
public class WebhooksUpdateEvent extends Event
Dispatched when a webhook is updated in a guild.Discord does not send any information about what was actually updated. This is simply a notification of SOME update.
This event is dispatched by Discord.
- See Also:
- Webhooks Update
-
-
Constructor Summary
Constructors Constructor Description WebhooksUpdateEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, long guildId, long channelId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Mono<TextChannel>
getChannel()
Requests to retrieve theTextChannel
the webhook belongs to.Snowflake
getChannelId()
Gets theSnowflake
ID of the channel the webhook belongs to.Mono<Guild>
getGuild()
Requests to retrieve theGuild
that had a webhook updated in this event.Snowflake
getGuildId()
Gets theSnowflake
ID of the guild that had a webhook updated in this event.String
toString()
-
Methods inherited from class discord4j.core.event.domain.Event
getClient, getShardInfo
-
-
-
-
Constructor Detail
-
WebhooksUpdateEvent
public WebhooksUpdateEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, long guildId, long channelId)
-
-
Method Detail
-
getGuildId
public Snowflake getGuildId()
Gets theSnowflake
ID of the guild that had a webhook updated in this event.- Returns:
- The ID of the guild involved.
-
getGuild
public Mono<Guild> getGuild()
Requests to retrieve theGuild
that had a webhook updated in this event.
-
getChannelId
public Snowflake getChannelId()
Gets theSnowflake
ID of the channel the webhook belongs to.- Returns:
- The ID of the channel involved.
-
getChannel
public Mono<TextChannel> getChannel()
Requests to retrieve theTextChannel
the webhook belongs to.- Returns:
- A
Mono
where, upon successful completion, emits theTextChannel
involved in the event. If an error is received, it is emitted through theMono
.
-
-