Class: Discordrb::Events::GuildDeleteEvent

Inherits:
GuildEvent
  • Object
show all
Defined in:
lib/discordrb/events/guilds.rb

Overview

Server is deleted

Instance Attribute Summary

Attributes inherited from GuildEvent

#server

Instance Method Summary collapse

Methods inherited from GuildEvent

#initialize

Constructor Details

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

Instance Method Details

#init_server(data, bot) ⇒ Object

Overide init_server to account for the deleted server



50
51
52
# File 'lib/discordrb/events/guilds.rb', line 50

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