Class: Discordrb::Role::Tags
- Inherits:
-
Object
- Object
- Discordrb::Role::Tags
- Defined in:
- lib/discordrb/data/role.rb
Overview
Wrapper for the role tags
Instance Attribute Summary collapse
-
#available_for_purchase ⇒ true, false
(also: #available_for_purchase?)
readonly
Whether this role is available for purchase.
-
#bot_id ⇒ Integer?
readonly
The ID of the bot this role belongs to.
-
#guild_connections ⇒ true, false
(also: #guild_connections?, #server_connections?)
readonly
Whether this role is a guild's linked role.
-
#integration_id ⇒ Integer?
readonly
The ID of the integration this role belongs to.
-
#premium_subscriber ⇒ true, false
(also: #premium_subscriber?)
readonly
Whether this is the guild's Booster role.
-
#subscription_listing_id ⇒ Integer?
readonly
The id of this role's subscription sku and listing.
Instance Attribute Details
#available_for_purchase ⇒ true, false (readonly) Also known as: available_for_purchase?
Returns Whether this role is available for purchase.
72 73 74 |
# File 'lib/discordrb/data/role.rb', line 72 def available_for_purchase @available_for_purchase end |
#bot_id ⇒ Integer? (readonly)
Returns The ID of the bot this role belongs to.
59 60 61 |
# File 'lib/discordrb/data/role.rb', line 59 def bot_id @bot_id end |
#guild_connections ⇒ true, false (readonly) Also known as: guild_connections?, server_connections?
Returns Whether this role is a guild's linked role.
76 77 78 |
# File 'lib/discordrb/data/role.rb', line 76 def guild_connections @guild_connections end |
#integration_id ⇒ Integer? (readonly)
Returns The ID of the integration this role belongs to.
62 63 64 |
# File 'lib/discordrb/data/role.rb', line 62 def integration_id @integration_id end |
#premium_subscriber ⇒ true, false (readonly) Also known as:
Returns Whether this is the guild's Booster role.
65 66 67 |
# File 'lib/discordrb/data/role.rb', line 65 def premium_subscriber @premium_subscriber end |
#subscription_listing_id ⇒ Integer? (readonly)
Returns The id of this role's subscription sku and listing.
69 70 71 |
# File 'lib/discordrb/data/role.rb', line 69 def subscription_listing_id @subscription_listing_id end |