ActivityLocation
ClassOn this page
ActivityLocation is a DiscordLua class representing a Discord resource. Obtain it from a manager, an event payload, or the constructor when one is documented below.
Properties
- Name
channelId- Type
any- Access
- readonly
- Description
- Instance field
ActivityLocation.channelId. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this ActivityLocation.
- Name
client- Type
any- Access
- readonly
- Description
- Owning Client instance used for REST, cache, and event dispatch.
- Availability
- Populated from the Gateway/REST payload or constructor for this ActivityLocation.
- Name
guildId- Type
any- Access
- readonly
- Description
- Instance field
ActivityLocation.guildId. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this ActivityLocation.
- Name
id- Type
any- Access
- readonly
- Description
- Snowflake id of this ActivityLocation.
- Availability
- Populated from the Gateway/REST payload or constructor for this ActivityLocation.
- Name
kind- Type
any- Access
- readonly
- Description
- Instance field
ActivityLocation.kind. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this ActivityLocation.
- Name
raw- Type
any- Access
- readonly
- Description
- Instance field
ActivityLocation.raw. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this ActivityLocation.
Methods
ActivityLocation:channel()
#Performs channel on this ActivityLocation. Call it from bot code when you need that operation on the current object.
Signature
ActivityLocation:channel() Parameters
No parameters.
Returns
ActivityLocation — the same instance, for chaining.
Example
local discord = require("discord")
-- object is a ActivityLocation
object:channel()ActivityLocation:guild()
#Performs guild on this ActivityLocation. Call it from bot code when you need that operation on the current object.
Signature
ActivityLocation:guild() Parameters
No parameters.
Returns
ActivityLocation — the same instance, for chaining.
Example
local discord = require("discord")
-- object is a ActivityLocation
object:guild()Examples
Obtain this object from a manager, wrap helper, or event payload — it is not constructed directly in typical bot code.
Related APIs
ActionRow · Activity · ActivityInstance · AnonymousGuild · ApplicationCommand · ApplicationRoleConnectionMetadata · Attachment · AuthorizingIntegrationOwners
Version: discord 1.2.4 · runtime 1.0.0