public class InviteDeleteEvent extends Event
This event is dispatched by Discord.
Constructor and Description |
---|
InviteDeleteEvent(DiscordClient client,
Long guildId,
long channelId,
String code) |
Modifier and Type | Method and Description |
---|---|
Snowflake |
getChannelId()
Gets the
Snowflake ID of the Channel where the invite was deleted. |
String |
getCode()
Gets the invite code (unique ID).
|
Mono<Guild> |
getGuild()
Requests to retrieve the
Guild that had an invite deleted in this event. |
Optional<Snowflake> |
getGuildId()
|
String |
toString() |
public InviteDeleteEvent(DiscordClient client, Long guildId, long channelId, String code)
public Optional<Snowflake> getGuildId()
public Mono<Guild> getGuild()
Guild
that had an invite deleted in this event.public Snowflake getChannelId()
Snowflake
ID of the Channel
where the invite was deleted.public final String getCode()