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

#reasonString (readonly)

Returns The reason for the ban.

Returns:

  • (String)

    The reason for the ban.



1778
1779
1780
# File 'lib/discorb/guild.rb', line 1778

def reason
  @reason
end

#userDiscorb::User (readonly)

Returns The user.

Returns:



1776
1777
1778
# File 'lib/discorb/guild.rb', line 1776

def user
  @user
end

Instance Method Details

#inspectObject



1796
1797
1798
# File 'lib/discorb/guild.rb', line 1796

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