Class: Discordrb::Events::UserBanEvent

Inherits:
Event
  • Object
show all
Defined in:
lib/discordrb/events/bans.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/discordrb/events/bans.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/discordrb/events/bans.rb', line 9

def user
  @user
end