Class: RubyCord::Guild::Template::TemplateGuild

Inherits:
DiscordModel
  • Object
show all
Defined in:
lib/rubycord/guild/template.rb

Overview

Represents a guild in guild template.

Defined Under Namespace

Classes: Channel, Role

Instance Attribute Summary collapse

Method Summary

Methods inherited from DiscordModel

#==, #eql?, #inspect

Instance Attribute Details

#afk_timeoutInteger (readonly)

Returns The AFK timeout of the guild.

Returns:

  • (Integer)

    The AFK timeout of the guild.



138
139
140
# File 'lib/rubycord/guild/template.rb', line 138

def afk_timeout
  @afk_timeout
end

#channelsRubyCord::Internal::Dictionary{RubyCord::Snowflake => RubyCord::Guild::Channel} (readonly)

Returns A dictionary of channels in the guild.

Returns:



145
146
147
# File 'lib/rubycord/guild/template.rb', line 145

def channels
  @channels
end

#default_message_notifications:all_messages, :only_mentions (readonly)

Returns The default message notification level of the guild.

Returns:

  • (:all_messages, :only_mentions)

    The default message notification level of the guild.



154
155
156
# File 'lib/rubycord/guild/template.rb', line 154

def default_message_notifications
  @default_message_notifications
end

#descriptionString (readonly)

Returns The description of the guild.

Returns:

  • (String)

    The description of the guild.



147
148
149
# File 'lib/rubycord/guild/template.rb', line 147

def description
  @description
end

#explicit_content_filter:disabled_in_text, ... (readonly)

Returns The explict content filter level of the guild.

Returns:

  • (:disabled_in_text, :members_without_roles, :all_members)

    The explict content filter level of the guild.



156
157
158
# File 'lib/rubycord/guild/template.rb', line 156

def explicit_content_filter
  @explicit_content_filter
end

#nameString (readonly)

Returns The name of the guild.

Returns:

  • (String)

    The name of the guild.



136
137
138
# File 'lib/rubycord/guild/template.rb', line 136

def name
  @name
end

#preferred_localeSymbol (readonly)

Note:

This modifies the language code, - will be replaced with _.

Returns The preffered language of the guild.

Returns:

  • (Symbol)

    The preffered language of the guild.



150
151
152
# File 'lib/rubycord/guild/template.rb', line 150

def preferred_locale
  @preferred_locale
end

#rolesRubyCord::Internal::Dictionary{RubyCord::Snowflake => RubyCord::Role} (readonly)

Returns A dictionary of roles in the guild.

Returns:



140
141
142
# File 'lib/rubycord/guild/template.rb', line 140

def roles
  @roles
end

#system_channel_flagsRubyCord::Guild::SystemChannelFlag (readonly)

Returns The flag for the system channel.

Returns:



142
143
144
# File 'lib/rubycord/guild/template.rb', line 142

def system_channel_flags
  @system_channel_flags
end

#verification_level:none, ... (readonly)

Returns The verification level of the guild.

Returns:

  • (:none, :low, :medium, :high, :very_high)

    The verification level of the guild.



152
153
154
# File 'lib/rubycord/guild/template.rb', line 152

def verification_level
  @verification_level
end

#widget_enabledBoolean (readonly) Also known as: widget_enabled?

Returns Whether the guild enabled the widget.

Returns:

  • (Boolean)

    Whether the guild enabled the widget.



158
159
160
# File 'lib/rubycord/guild/template.rb', line 158

def widget_enabled
  @widget_enabled
end