Package discord4j.core.event.domain.role
Class RoleDeleteEvent
- java.lang.Object
-
- discord4j.core.event.domain.Event
-
- discord4j.core.event.domain.role.RoleEvent
-
- discord4j.core.event.domain.role.RoleDeleteEvent
-
public class RoleDeleteEvent extends RoleEvent
Dispatched when a role is deleted in a guild.The deleted role may not be present if roles are not stored.
This event is dispatched by Discord.
- See Also:
- Guild Role Delete
-
-
Constructor Summary
Constructors Constructor Description RoleDeleteEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, long guildId, long roleId, Role role)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Mono<Guild>
getGuild()
Snowflake
getGuildId()
Optional<Role>
getRole()
Gets theRole
that was deleted in this event, if present.Snowflake
getRoleId()
String
toString()
-
Methods inherited from class discord4j.core.event.domain.Event
getClient, getShardInfo
-
-
-
-
Constructor Detail
-
RoleDeleteEvent
public RoleDeleteEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, long guildId, long roleId, @Nullable Role role)
-
-