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

#idDiscorb::Snowflake (readonly)

Returns The ID of the channel.

Returns:



340
341
342
# File 'lib/discorb/webhook.rb', line 340

def id
  @id
end

#nameString (readonly)

Returns The name of the channel.

Returns:

  • (String)

    The name of the channel.



342
343
344
# File 'lib/discorb/webhook.rb', line 342

def name
  @name
end

Instance Method Details

#inspectObject



355
356
357
# File 'lib/discorb/webhook.rb', line 355

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