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?, #hash

Instance Attribute Details

#bitrate -> Integer (readonly)

Returns The bitrate of the channel.

Returns:

  • (Integer)

    The bitrate of the channel.



167
168
169
# File 'lib/discorb/guild_template.rb', line 167

def bitrate
  @bitrate
end

#name -> String (readonly)

Returns The name of the channel.

Returns:

  • (String)

    The name of the channel.



161
162
163
# File 'lib/discorb/guild_template.rb', line 161

def name
  @name
end

#nsfw -> Boolean (readonly)

Returns Whether the channel is nsfw.

Returns:

  • (Boolean)

    Whether the channel is nsfw.



171
172
173
# File 'lib/discorb/guild_template.rb', line 171

def nsfw
  @nsfw
end

#position -> Integer (readonly)

Returns The position of the channel.

Returns:

  • (Integer)

    The position of the channel.



163
164
165
# File 'lib/discorb/guild_template.rb', line 163

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.



173
174
175
# File 'lib/discorb/guild_template.rb', line 173

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.



165
166
167
# File 'lib/discorb/guild_template.rb', line 165

def topic
  @topic
end

#type -> Class (readonly)

Returns The class of the channel.

Returns:

  • (Class)

    The class of the channel.



175
176
177
# File 'lib/discorb/guild_template.rb', line 175

def type
  @type
end

#user_limit -> Integer (readonly)

Returns The user limit of the channel.

Returns:

  • (Integer)

    The user limit of the channel.



169
170
171
# File 'lib/discorb/guild_template.rb', line 169

def user_limit
  @user_limit
end