Class: Discorb::Guild::Ban

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

Overview

Represents a ban.

Instance Attribute Summary collapse

Method Summary

Methods inherited from DiscordModel

#==, #eql?, #hash

Instance Attribute Details

#reason -> String (readonly)

Returns The reason for the ban.

Returns:

  • (String)

    The reason for the ban.



1114
1115
1116
# File 'lib/discorb/guild.rb', line 1114

def reason
  @reason
end

#user -> Discorb::User (readonly)

Returns The user.

Returns:



1112
1113
1114
# File 'lib/discorb/guild.rb', line 1112

def user
  @user
end