Class: Discorb::Webhook::FollowerWebhook::Guild

Inherits:
DiscordModel
  • Object
show all
Defined in:
lib/discorb/webhook.rb

Overview

Represents a guild of follower webhook.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DiscordModel

#==, #eql?

Instance Attribute Details

#icon -> Discorb::Asset (readonly)

Returns The icon of the guild.

Returns:



283
284
285
# File 'lib/discorb/webhook.rb', line 283

def icon
  @icon
end

#id -> Discorb::Snowflake (readonly)

Returns The ID of the guild.

Returns:



279
280
281
# File 'lib/discorb/webhook.rb', line 279

def id
  @id
end

#name -> String (readonly)

Returns The name of the guild.

Returns:

  • (String)

    The name of the guild.



281
282
283
# File 'lib/discorb/webhook.rb', line 281

def name
  @name
end

Instance Method Details

#inspect -> Object



297
298
299
# File 'lib/discorb/webhook.rb', line 297

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