Package discord4j.core.event.domain
Class WebhooksUpdateEvent
java.lang.Object
discord4j.core.event.domain.Event
discord4j.core.event.domain.WebhooksUpdateEvent
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:
-
Constructor Summary
ConstructorDescriptionWebhooksUpdateEvent
(GatewayDiscordClient gateway, ShardInfo shardInfo, long guildId, long channelId) -
Method Summary
Modifier and TypeMethodDescriptionRequests to retrieve theTextChannel
the webhook belongs to.Gets theSnowflake
ID of the channel the webhook belongs to.getGuild()
Requests to retrieve theGuild
that had a webhook updated in this event.Gets theSnowflake
ID of the guild that had a webhook updated in this event.toString()
Methods inherited from class discord4j.core.event.domain.Event
getClient, getShardInfo
-
Constructor Details
-
WebhooksUpdateEvent
public WebhooksUpdateEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, long guildId, long channelId)
-
-
Method Details
-
getGuildId
Gets theSnowflake
ID of the guild that had a webhook updated in this event.- Returns:
- The ID of the guild involved.
-
getGuild
Requests to retrieve theGuild
that had a webhook updated in this event. -
getChannelId
Gets theSnowflake
ID of the channel the webhook belongs to.- Returns:
- The ID of the channel involved.
-
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
.
-
toString
-