Class: Discorb::Webhook::FollowerWebhook::Guild
- Inherits:
-
DiscordModel
- Object
- DiscordModel
- Discorb::Webhook::FollowerWebhook::Guild
- Defined in:
- lib/discorb/webhook.rb
Overview
Represents a guild of follower webhook.
Instance Attribute Summary collapse
-
#icon -> Discorb::Asset
readonly
The icon of the guild.
-
#id -> Discorb::Snowflake
readonly
The ID of the guild.
-
#name -> String
readonly
The name of the guild.
Instance Method Summary collapse
Methods inherited from DiscordModel
Instance Attribute Details
#icon -> Discorb::Asset (readonly)
Returns The icon of the guild.
316 317 318 |
# File 'lib/discorb/webhook.rb', line 316 def icon @icon end |
#id -> Discorb::Snowflake (readonly)
Returns The ID of the guild.
312 313 314 |
# File 'lib/discorb/webhook.rb', line 312 def id @id end |
#name -> String (readonly)
Returns The name of the guild.
314 315 316 |
# File 'lib/discorb/webhook.rb', line 314 def name @name end |
Instance Method Details
#inspect -> Object
330 331 332 |
# File 'lib/discorb/webhook.rb', line 330 def inspect "#<#{self.class.name} #{@id}: #{@name}>" end |