Class: Discorb::GuildTemplate::TemplateGuild::Channel

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

Overview

Represents a channel in guild template.

Instance Attribute Summary collapse

Method Summary

Methods inherited from DiscordModel

#==, #eql?, #inspect

Instance Attribute Details

#bitrate -> Integer (readonly)

Returns The bitrate of the channel.

Returns:

  • (Integer)

    The bitrate of the channel.



192
193
194
# File 'lib/discorb/guild_template.rb', line 192

def bitrate
  @bitrate
end

#name -> String (readonly)

Returns The name of the channel.

Returns:

  • (String)

    The name of the channel.



186
187
188
# File 'lib/discorb/guild_template.rb', line 186

def name
  @name
end

#nsfw -> Boolean (readonly)

Returns Whether the channel is nsfw.

Returns:

  • (Boolean)

    Whether the channel is nsfw.



196
197
198
# File 'lib/discorb/guild_template.rb', line 196

def nsfw
  @nsfw
end

#position -> Integer (readonly)

Returns The position of the channel.

Returns:

  • (Integer)

    The position of the channel.



188
189
190
# File 'lib/discorb/guild_template.rb', line 188

def position
  @position
end

#rate_limit_per_user -> Integer (readonly)

Returns The rate limit of the channel.

Returns:

  • (Integer)

    The rate limit of the channel.



198
199
200
# File 'lib/discorb/guild_template.rb', line 198

def rate_limit_per_user
  @rate_limit_per_user
end

#topic -> String (readonly)

Returns The type of the channel.

Returns:

  • (String)

    The type of the channel.



190
191
192
# File 'lib/discorb/guild_template.rb', line 190

def topic
  @topic
end

#type -> Class (readonly)

Returns The class of the channel.

Returns:

  • (Class)

    The class of the channel.



200
201
202
# File 'lib/discorb/guild_template.rb', line 200

def type
  @type
end

#user_limit -> Integer (readonly)

Returns The user limit of the channel.

Returns:

  • (Integer)

    The user limit of the channel.



194
195
196
# File 'lib/discorb/guild_template.rb', line 194

def user_limit
  @user_limit
end