Class: ESM::Event::ServerCreate

Inherits:
Object
  • Object
show all
Defined in:
lib/esm/event/server_create.rb

Instance Method Summary collapse

Constructor Details

#initialize(server) ⇒ ServerCreate

Returns a new instance of ServerCreate.



6
7
8
9
10
11
12
# File 'lib/esm/event/server_create.rb', line 6

def initialize(server)
  @server = server
  @owner = server.owner

  @community = ESM::Community.from_discord(@server)
  @user = ESM::User.from_discord(@owner)
end

Instance Method Details

#run!Object



14
15
16
17
# File 'lib/esm/event/server_create.rb', line 14

def run!
  # Send the welcome message
  send_welcome
end