GuildAuditLogs
ClassOn this page
GuildAuditLogs 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
applicationCommands- Type
- Collection
- Access
- readonly
- Description
- Instance field
GuildAuditLogs.applicationCommands. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this GuildAuditLogs.
- Related
- Collection
- Name
autoModerationRules- Type
- Collection
- Access
- readonly
- Description
- Instance field
GuildAuditLogs.autoModerationRules. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this GuildAuditLogs.
- Related
- Collection
- 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 GuildAuditLogs.
- Name
entries- Type
- Collection
- Access
- readonly
- Description
- Instance field
GuildAuditLogs.entries. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this GuildAuditLogs.
- Related
- Collection
- Name
guild- Type
any- Access
- readonly
- Description
- Guild this GuildAuditLogs belongs to, when the payload included a guild id.
- Availability
- Populated from the Gateway/REST payload or constructor for this GuildAuditLogs.
- Name
integrations- Type
- Collection
- Access
- readonly
- Description
- Instance field
GuildAuditLogs.integrations. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this GuildAuditLogs.
- Related
- Collection
- Name
raw- Type
any- Access
- readonly
- Description
- Instance field
GuildAuditLogs.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 GuildAuditLogs.
- Name
users- Type
- Collection
- Access
- readonly
- Description
- Instance field
GuildAuditLogs.users. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this GuildAuditLogs.
- Related
- Collection
- Name
webhooks- Type
- Collection
- Access
- readonly
- Description
- Instance field
GuildAuditLogs.webhooks. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this GuildAuditLogs.
- Related
- Collection
Methods
GuildAuditLogs:toJSON()
#Serialize this GuildAuditLogs into a Lua table suitable for REST or debugging.
Signature
GuildAuditLogs:toJSON() Parameters
No parameters.
Returns
any.
Example
local discord = require("discord")
-- object is a GuildAuditLogs
object:toJSON()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