DiscordLua
discorddiscord
v1.2.4
Install

TeamMember

Class
On this page

TeamMember is a DiscordLua class representing a Discord resource. Obtain it from a manager, an event payload, or the constructor when one is documented below.

class Module 1.2.4 Source

Properties

TeamMember.client

# readonly
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 TeamMember.

TeamMember.id

# readonly
Name
id
Type
any
Access
readonly
Description
Snowflake id of this TeamMember.
Availability
Populated from the Gateway/REST payload or constructor for this TeamMember.

TeamMember.membershipState

# readonly
Name
membershipState
Type
any
Access
readonly
Description
Instance field TeamMember.membershipState. Read it after the object is constructed or wrapped from Gateway/REST data.
Availability
Populated from the Gateway/REST payload or constructor for this TeamMember.

TeamMember.permissions

# readonly
Name
permissions
Type
any
Access
readonly
Description
Instance field TeamMember.permissions. Read it after the object is constructed or wrapped from Gateway/REST data.
Availability
Populated from the Gateway/REST payload or constructor for this TeamMember.

TeamMember.raw

# readonly
Name
raw
Type
any
Access
readonly
Description
Instance field TeamMember.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 TeamMember.

TeamMember.role

# readonly
Name
role
Type
any
Access
readonly
Description
Instance field TeamMember.role. Read it after the object is constructed or wrapped from Gateway/REST data.
Availability
Populated from the Gateway/REST payload or constructor for this TeamMember.

TeamMember.team

# readonly
Name
team
Type
any
Access
readonly
Description
Instance field TeamMember.team. Read it after the object is constructed or wrapped from Gateway/REST data.
Availability
Populated from the Gateway/REST payload or constructor for this TeamMember.

TeamMember.user

# readonly
Name
user
Type
any
Access
readonly
Description
User object associated with this TeamMember.
Availability
Populated from the Gateway/REST payload or constructor for this TeamMember.

Methods

TeamMember:toString()

#

function toString() { [native code] }

Signature

TeamMember:toString()

Parameters

No parameters.

Returns

TeamMember — the same instance, for chaining.

Example

lua
local discord = require("discord")
-- object is a TeamMember
object:toString()

Examples

Obtain this object from a manager, wrap helper, or event payload — it is not constructed directly in typical bot code.

ActionRow · Activity · ActivityInstance · ActivityLocation · AnonymousGuild · ApplicationCommand · ApplicationRoleConnectionMetadata · Attachment

Version: discord 1.2.4 · runtime 1.0.0

Search Ctrl K Navigate Open Esc