Method: Discordrb::EventContainer#server_delete

Defined in:
lib/discordrb/container.rb

#server_delete(attributes = {}) {|event| ... } ⇒ ServerDeleteEventHandler

This event is raised when a server is deleted, or when the bot leaves a server. (These two cases are identical to Discord.)

Parameters:

  • attributes (Hash) (defaults to: {})

    The event's attributes.

Options Hash (attributes):

Yields:

  • The block is executed when the event is raised.

Yield Parameters:

Returns:



375
376
377
# File 'lib/discordrb/container.rb', line 375

def server_delete(attributes = {}, &block)
  register_event(ServerDeleteEvent, attributes, block)
end