Class: Discorb::Guild::Ban

Inherits:
DiscordModel show all
Defined in:
lib/discorb/guild.rb

Overview

Represents a ban.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DiscordModel

#==, #eql?

Instance Attribute Details

#reason -> String (readonly)

Returns The reason for the ban.

Returns:

  • (String)

    The reason for the ban.



1353
1354
1355
# File 'lib/discorb/guild.rb', line 1353

def reason
  @reason
end

#user -> Discorb::User (readonly)

Returns The user.

Returns:



1351
1352
1353
# File 'lib/discorb/guild.rb', line 1351

def user
  @user
end

Instance Method Details

#inspect -> Object



1370
1371
1372
# File 'lib/discorb/guild.rb', line 1370

def inspect
  "<#{self.class.name} #{@user}>"
end