class Discorb::Webhook::FollowerWebhook::Guild

Represents a guild of follower webhook.

Attributes

icon[R]

@return [Discorb::Asset] The icon of the guild.

id[R]

@return [Discorb::Snowflake] The ID of the guild.

name[R]

@return [String] The name of the guild.

Public Class Methods

new(data) click to toggle source

@!visibility private

# File lib/discorb/webhook.rb, line 261
def initialize(data)
  @id = Snowflake.new(data[:id])
  @name = data[:name]
  @icon = Asset.new(self, data[:icon])
end