Class: Discordrb::Role::Tags

Inherits:
Object
  • Object
show all
Defined in:
lib/discordrb/data/role.rb

Overview

Wrapper for the role tags

Instance Attribute Summary collapse

Instance Attribute Details

#available_for_purchasetrue, false (readonly) Also known as: available_for_purchase?

Returns Whether this role is available for purchase.

Returns:

  • (true, false)

    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_idInteger? (readonly)

Returns The ID of the bot this role belongs to.

Returns:

  • (Integer, nil)

    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_connectionstrue, false (readonly) Also known as: guild_connections?, server_connections?

Returns Whether this role is a guild's linked role.

Returns:

  • (true, false)

    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_idInteger? (readonly)

Returns The ID of the integration this role belongs to.

Returns:

  • (Integer, nil)

    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_subscribertrue, false (readonly) Also known as: premium_subscriber?

Returns Whether this is the guild's Booster role.

Returns:

  • (true, false)

    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_idInteger? (readonly)

Returns The id of this role's subscription sku and listing.

Returns:

  • (Integer, nil)

    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