Class: Discordrb::Events::ServerDeleteEvent

Inherits:
ServerEvent show all
Defined in:
lib/discordrb/events/guilds.rb

Overview

Server is deleted

Instance Attribute Summary

Attributes inherited from ServerEvent

#server

Attributes inherited from Event

#bot

Instance Method Summary collapse

Methods inherited from ServerEvent

#initialize

Constructor Details

This class inherits a constructor from Discordrb::Events::ServerEvent

Instance Method Details

#init_server(data, bot) ⇒ Object

Override init_server to account for the deleted server



63
64
65
# File 'lib/discordrb/events/guilds.rb', line 63

def init_server(data, bot)
  @server = Discordrb::Server.new(data, bot, false)
end