Class: OnyxCord::Events::UserBanEvent

Inherits:
Event
  • Object
show all
Defined in:
lib/onyxcord/events/ban/base.rb

Overview

Raised when a user is banned

Direct Known Subclasses

UserUnbanEvent

Instance Attribute Summary collapse

Attributes inherited from Event

#bot

Instance Attribute Details

#serverServer (readonly)

Returns the server from which the user was banned.

Returns:

  • (Server)

    the server from which the user was banned



12
13
14
# File 'lib/onyxcord/events/ban/base.rb', line 12

def server
  @server
end

#userUser (readonly)

Returns the user that was banned.

Returns:

  • (User)

    the user that was banned



9
10
11
# File 'lib/onyxcord/events/ban/base.rb', line 9

def user
  @user
end