Skip to main content
Module

x/discord_api_types/v8.ts>APIAuditLogOptions

Up to date Discord API Typings, versioned by the API version
Go to Latest
interface APIAuditLogOptions
Deprecated
Deprecated

API and gateway v8 are deprecated and the types will not receive further updates, please update to v10.

import { type APIAuditLogOptions } from "https://deno.land/x/discord_api_types@0.37.11/v8.ts";

Properties

optional
delete_member_days: string

Number of days after which inactive members were kicked

Present from:

  • MEMBER_PRUNE
optional
members_removed: string

Number of members removed by the prune

Present from:

  • MEMBER_PRUNE
optional
channel_id: Snowflake

Channel in which the entities were targeted

Present from:

  • MEMBER_MOVE
  • MESSAGE_PIN
  • MESSAGE_UNPIN
  • MESSAGE_DELETE
  • STAGE_INSTANCE_CREATE
  • STAGE_INSTANCE_UPDATE
  • STAGE_INSTANCE_DELETE
optional
message_id: Snowflake

ID of the message that was targeted

Present from:

  • MESSAGE_PIN
  • MESSAGE_UNPIN
optional
count: string

Number of entities that were targeted

Present from:

  • MESSAGE_DELETE
  • MESSAGE_BULK_DELETE
  • MEMBER_DISCONNECT
  • MEMBER_MOVE
optional
id: Snowflake

ID of the overwritten entity

Present from:

  • CHANNEL_OVERWRITE_CREATE
  • CHANNEL_OVERWRITE_UPDATE
  • CHANNEL_OVERWRITE_DELETE
optional
type: AuditLogOptionsType

Type of overwritten entity - "0" for "role" or "1" for "member"

Present from:

  • CHANNEL_OVERWRITE_CREATE
  • CHANNEL_OVERWRITE_UPDATE
  • CHANNEL_OVERWRITE_DELETE

AuditLogOptionsType

optional
role_name: string

Name of the role

Present from:

  • CHANNEL_OVERWRITE_CREATE
  • CHANNEL_OVERWRITE_UPDATE
  • CHANNEL_OVERWRITE_DELETE

Present only if the APIAuditLogOptions#type | entry type is "0"