public class RoleDeleteEvent extends RoleEvent
The deleted role may not be present if roles are not stored.
This event is dispatched by Discord.
Constructor and Description |
---|
RoleDeleteEvent(DiscordClient client,
long guildId,
long roleId,
Role role) |
Modifier and Type | Method and Description |
---|---|
Mono<Guild> |
getGuild()
|
Snowflake |
getGuildId()
|
Optional<Role> |
getRole()
Gets the
Role that was deleted in this event, if present. |
Snowflake |
getRoleId()
|
String |
toString() |
public RoleDeleteEvent(DiscordClient client, long guildId, long roleId, @Nullable Role role)