Class: Discorb::Guild::Ban
- Inherits:
-
DiscordModel
- Object
- DiscordModel
- Discorb::Guild::Ban
- Defined in:
- lib/discorb/guild.rb
Overview
Represents a ban.
Instance Attribute Summary collapse
-
#reason -> String
readonly
The reason for the ban.
-
#user -> Discorb::User
readonly
The user.
Method Summary
Methods inherited from DiscordModel
Instance Attribute Details
#reason -> String (readonly)
Returns The reason for the ban.
1134 1135 1136 |
# File 'lib/discorb/guild.rb', line 1134 def reason @reason end |
#user -> Discorb::User (readonly)
Returns The user.
1132 1133 1134 |
# File 'lib/discorb/guild.rb', line 1132 def user @user end |