public class InviteDeleteEvent extends Event
This event is dispatched by Discord.
Constructor and Description |
---|
InviteDeleteEvent(GatewayDiscordClient client,
ShardInfo shardInfo,
Long guildId,
long channelId,
String code) |
Modifier and Type | Method and Description |
---|---|
Snowflake |
getChannelId()
|
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() |
getClient, getShardInfo
public InviteDeleteEvent(GatewayDiscordClient client, ShardInfo shardInfo, 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()
public final String getCode()