Package discord4j.core.event.domain
Class InviteDeleteEvent
java.lang.Object
discord4j.core.event.domain.Event
discord4j.core.event.domain.InviteDeleteEvent
Dispatched when an invite to a channel is deleted.
This event is dispatched by Discord.
- See Also:
-
Constructor Summary
ConstructorDescriptionInviteDeleteEvent
(GatewayDiscordClient client, ShardInfo shardInfo, Long guildId, long channelId, String code) -
Method Summary
Methods inherited from class discord4j.core.event.domain.Event
getClient, getShardInfo
-
Constructor Details
-
InviteDeleteEvent
public InviteDeleteEvent(GatewayDiscordClient client, ShardInfo shardInfo, Long guildId, long channelId, String code)
-
-
Method Details
-
getGuildId
- Returns:
- The ID of the guild involved, if present.
-
getGuild
Requests to retrieve theGuild
that had an invite deleted in this event. -
getChannelId
- Returns:
- The ID of the channel involved.
-
getCode
Gets the invite code (unique ID).- Returns:
- The invite code (unique ID).
-
toString
-