Class: RubyCord::Guild::FollowerWebhook::Channel

Inherits:
DiscordModel
  • Object
show all
Defined in:
lib/rubycord/guild/webhook/follower_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

#idRubyCord::Snowflake (readonly)

Returns The ID of the channel.

Returns:



68
69
70
# File 'lib/rubycord/guild/webhook/follower_webhook.rb', line 68

def id
  @id
end

#nameString (readonly)

Returns The name of the channel.

Returns:

  • (String)

    The name of the channel.



70
71
72
# File 'lib/rubycord/guild/webhook/follower_webhook.rb', line 70

def name
  @name
end

Instance Method Details

#inspectObject



83
84
85
# File 'lib/rubycord/guild/webhook/follower_webhook.rb', line 83

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