Class: ESM::Event::ServerCreate
- Inherits:
-
Object
- Object
- ESM::Event::ServerCreate
- Defined in:
- lib/esm/event/server_create.rb
Instance Method Summary collapse
-
#initialize(server) ⇒ ServerCreate
constructor
A new instance of ServerCreate.
- #run! ⇒ Object
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 |