Typing
ClassOn this page
Typing 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
channel- Type
any- Access
- readonly
- Description
- Channel this Typing belongs to, when resolved from cache.
- Availability
- Populated from the Gateway/REST payload or constructor for this Typing.
- Name
channelId- Type
any- Access
- readonly
- Description
- Instance field
Typing.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 Typing.
- 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 Typing.
- Name
guild- Type
any- Access
- readonly
- Description
- Guild this Typing belongs to, when the payload included a guild id.
- Availability
- Populated from the Gateway/REST payload or constructor for this Typing.
- Name
guildId- Type
any- Access
- readonly
- Description
- Instance field
Typing.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 Typing.
- Name
member- Type
any- Access
- readonly
- Description
- Guild member view of the user, when the event occurred in a guild.
- Availability
- Populated from the Gateway/REST payload or constructor for this Typing.
- Name
raw- Type
any- Access
- readonly
- Description
- Instance field
Typing.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 Typing.
- Name
startedAt- Type
any- Access
- readonly
- Description
- Instance field
Typing.startedAt. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this Typing.
- Name
startedTimestamp- Type
any- Access
- readonly
- Description
- Instance field
Typing.startedTimestamp. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this Typing.
- Name
user- Type
any- Access
- readonly
- Description
- User object associated with this Typing.
- Availability
- Populated from the Gateway/REST payload or constructor for this Typing.
- Name
userId- Type
any- Access
- readonly
- Description
- Instance field
Typing.userId. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this Typing.
Methods
Typing:inGuild()
#Predicate that returns whether this Typing matches inGuild. Use it to branch before calling type-specific methods.
Signature
Typing:inGuild() Parameters
No parameters.
Returns
Typing — the same instance, for chaining.
Example
local discord = require("discord")
-- object is a Typing
object:inGuild()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 · ActivityLocation · AnonymousGuild · ApplicationCommand · ApplicationRoleConnectionMetadata · Attachment
Version: discord 1.2.4 · runtime 1.0.0