class Discordrb::Events::ServerDeleteEvent

Server is deleted, the server was left because the bot was kicked, or the bot made itself leave the server. @see Discordrb::EventContainer#server_delete

Attributes

server[R]

@return [Integer] The ID of the server that was left.

Public Instance Methods

init_server(data, _bot) click to toggle source

Override init_server to account for the deleted server

# File lib/discordrb/events/guilds.rb, line 68
def init_server(data, _bot)
  @server = data['id'].to_i
end