Package discord4j.core.event.domain
Class InviteDeleteEvent
- java.lang.Object
-
- discord4j.core.event.domain.Event
-
- discord4j.core.event.domain.InviteDeleteEvent
-
public class InviteDeleteEvent extends Event
Dispatched when an invite to a channel is deleted.This event is dispatched by Discord.
- See Also:
- Invite Delete
-
-
Constructor Summary
Constructors Constructor Description InviteDeleteEvent(GatewayDiscordClient client, ShardInfo shardInfo, Long guildId, long channelId, String code)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Snowflake
getChannelId()
String
getCode()
Gets the invite code (unique ID).Mono<Guild>
getGuild()
Requests to retrieve theGuild
that had an invite deleted in this event.Optional<Snowflake>
getGuildId()
String
toString()
-
Methods inherited from class discord4j.core.event.domain.Event
getClient, getShardInfo
-
-
-
-
Constructor Detail
-
InviteDeleteEvent
public InviteDeleteEvent(GatewayDiscordClient client, ShardInfo shardInfo, Long guildId, long channelId, String code)
-
-
Method Detail
-
getGuildId
public Optional<Snowflake> getGuildId()
- Returns:
- The ID of the guild involved, if present.
-
getGuild
public Mono<Guild> getGuild()
Requests to retrieve theGuild
that had an invite deleted in this event.
-
getChannelId
public Snowflake getChannelId()
- Returns:
- The ID of the channel involved.
-
getCode
public final String getCode()
Gets the invite code (unique ID).- Returns:
- The invite code (unique ID).
-
-