Class: Discorb::Role::Tag
- Inherits:
-
DiscordModel
- Object
- DiscordModel
- Discorb::Role::Tag
- Defined in:
- lib/discorb/role.rb
Overview
Represents a tag of a role.
Instance Attribute Summary collapse
-
#bot? -> Boolean
readonly
Whether the role is a bot role.
-
#bot_id -> Discorb::Snowflake
readonly
The ID of the bot that owns the role.
-
#integration? -> Boolean
readonly
Whether the role is an integration role.
-
#integration_id -> Discorb::Snowflake
readonly
The ID of the integration.
-
#premium_subscriber -> Boolean
(also: #premium_subscriber?)
readonly
Whether the tag is a premium subscriber role.
Method Summary
Methods inherited from DiscordModel
Instance Attribute Details
#bot? -> Boolean (readonly)
Returns Whether the role is a bot role.
|
# File 'lib/discorb/role.rb', line 152
|
#bot_id -> Discorb::Snowflake (readonly)
Returns The ID of the bot that owns the role.
146 147 148 |
# File 'lib/discorb/role.rb', line 146 def bot_id @bot_id end |
#integration? -> Boolean (readonly)
Returns Whether the role is an integration role.
|
# File 'lib/discorb/role.rb', line 152
|
#integration_id -> Discorb::Snowflake (readonly)
Returns The ID of the integration.
148 149 150 |
# File 'lib/discorb/role.rb', line 148 def integration_id @integration_id end |
#premium_subscriber -> Boolean (readonly) Also known as:
Returns Whether the tag is a premium subscriber role.
150 151 152 |
# File 'lib/discorb/role.rb', line 150 def premium_subscriber @premium_subscriber end |