DiscordLua
discorddiscord
v1.2.4
Install

GuildAuditLogs

Class
On 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.

class Module 1.2.4 Source

Properties

GuildAuditLogs.applicationCommands

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

GuildAuditLogs.autoModerationRules

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

GuildAuditLogs.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 GuildAuditLogs.

GuildAuditLogs.entries

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

GuildAuditLogs.guild

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

GuildAuditLogs.integrations

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

GuildAuditLogs.raw

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

GuildAuditLogs.users

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

GuildAuditLogs.webhooks

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

lua
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.

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

Version: discord 1.2.4 · runtime 1.0.0

Search Ctrl K Navigate Open Esc