Class: Discorb::Webhook::FollowerWebhook::Channel

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

Overview

Represents a channel of follower webhook.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DiscordModel

#==, #eql?

Instance Attribute Details

#id -> Discorb::Snowflake (readonly)

Returns The ID of the channel.

Returns:



291
292
293
# File 'lib/discorb/webhook.rb', line 291

def id
  @id
end

#name -> String (readonly)

Returns The name of the channel.

Returns:

  • (String)

    The name of the channel.



293
294
295
# File 'lib/discorb/webhook.rb', line 293

def name
  @name
end

Instance Method Details

#inspect -> Object



306
307
308
# File 'lib/discorb/webhook.rb', line 306

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