Class: Discordrb::Events::ServerRoleDeleteEvent

Inherits:
Event
  • Object
show all
Defined in:
lib/discordrb/events/roles.rb

Overview

Raised when a role is deleted from a server

Instance Attribute Summary collapse

Attributes inherited from Event

#bot

Instance Attribute Details

#idInteger (readonly)

Returns the ID of the role that got deleted.

Returns:

  • (Integer)

    the ID of the role that got deleted.



53
54
55
# File 'lib/discordrb/events/roles.rb', line 53

def id
  @id
end

#serverServer (readonly)

Returns the server on which a role got deleted.

Returns:

  • (Server)

    the server on which a role got deleted.



56
57
58
# File 'lib/discordrb/events/roles.rb', line 56

def server
  @server
end