Class: Discordrb::Events::UserBanEvent

Inherits:
Object
  • 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

Instance Attribute Details

#serverServer (readonly)

Returns the server from which the user was banned.

Returns:

  • (Server)

    the server from which the user was banned



10
11
12
# File 'lib/discordrb/events/bans.rb', line 10

def server
  @server
end

#userUser (readonly)

Returns the user that was banned.

Returns:

  • (User)

    the user that was banned



7
8
9
# File 'lib/discordrb/events/bans.rb', line 7

def user
  @user
end