Class RoleCreateEvent


  • public class RoleCreateEvent
    extends RoleEvent
    Dispatched when a role is created in a guild.

    This event is dispatched by Discord.

    See Also:
    Guild Role Create
    • Method Detail

      • getGuild

        public Mono<Guild> getGuild()
        Requests to retrieve the Guild the Role was created in.
        Returns:
        A Mono where, upon successful completion, emits the Guild the Guild was created in. If an error is received, it is emitted through the Mono.
      • getRole

        public Role getRole()
        Gets the Role that was created in this event.
        Returns:
        The Role that was created.