WidgetMember
ClassOn this page
WidgetMember 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
activity- Type
any- Access
- readonly
- Description
- Instance field
WidgetMember.activity. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this WidgetMember.
- Name
avatar- Type
any- Access
- readonly
- Description
- Instance field
WidgetMember.avatar. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this WidgetMember.
- Name
channelId- Type
any- Access
- readonly
- Description
- Instance field
WidgetMember.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 WidgetMember.
- 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 WidgetMember.
- Name
deaf- Type
any- Access
- readonly
- Description
- Instance field
WidgetMember.deaf. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this WidgetMember.
- Name
discriminator- Type
any- Access
- readonly
- Description
- Instance field
WidgetMember.discriminator. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this WidgetMember.
- Name
id- Type
any- Access
- readonly
- Description
- Snowflake id of this WidgetMember.
- Availability
- Populated from the Gateway/REST payload or constructor for this WidgetMember.
- Name
mute- Type
any- Access
- readonly
- Description
- Instance field
WidgetMember.mute. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this WidgetMember.
- Name
raw- Type
any- Access
- readonly
- Description
- Instance field
WidgetMember.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 WidgetMember.
- Name
selfDeaf- Type
any- Access
- readonly
- Description
- Instance field
WidgetMember.selfDeaf. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this WidgetMember.
- Name
selfMute- Type
any- Access
- readonly
- Description
- Instance field
WidgetMember.selfMute. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this WidgetMember.
- Name
status- Type
any- Access
- readonly
- Description
- Instance field
WidgetMember.status. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this WidgetMember.
- Name
suppress- Type
any- Access
- readonly
- Description
- Instance field
WidgetMember.suppress. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this WidgetMember.
- Name
username- Type
any- Access
- readonly
- Description
- Instance field
WidgetMember.username. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this WidgetMember.
Methods
WidgetMember:avatarURL()
#Performs avatar url on this WidgetMember. Call it from bot code when you need that operation on the current object.
Signature
WidgetMember:avatarURL(options) Parameters
| Name | Type | Required | Behavior |
|---|---|---|---|
options |
table |
optional | Lua option table. Field names match the corresponding DiscordLua option type when one exists. |
Returns
WidgetMember — the same instance, for chaining.
Example
local discord = require("discord")
-- object is a WidgetMember
object:avatarURL({})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