public class WebhooksUpdateEvent extends Event
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.
Constructor and Description |
---|
WebhooksUpdateEvent(GatewayDiscordClient gateway,
ShardInfo shardInfo,
long guildId,
long channelId) |
Modifier and Type | Method and Description |
---|---|
Mono<TextChannel> |
getChannel()
Requests to retrieve the
TextChannel the webhook belongs to. |
Snowflake |
getChannelId()
Gets the
Snowflake ID of the channel the webhook belongs to. |
Mono<Guild> |
getGuild()
Requests to retrieve the
Guild that had a webhook updated in this event. |
Snowflake |
getGuildId()
Gets the
Snowflake ID of the guild that had a webhook updated in this event. |
String |
toString() |
getClient, getShardInfo
public WebhooksUpdateEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, long guildId, long channelId)
public Snowflake getGuildId()
Snowflake
ID of the guild that had a webhook updated in this event.public Mono<Guild> getGuild()
Guild
that had a webhook updated in this event.public Snowflake getChannelId()
Snowflake
ID of the channel the webhook belongs to.public Mono<TextChannel> getChannel()
TextChannel
the webhook belongs to.Mono
where, upon successful completion, emits the TextChannel
involved in the event.
If an error is received, it is emitted through the Mono
.