discordjs / discord-api-types

Up to date Discord API Typings, versioned by the API version
https://discord-api-types.dev
MIT License
535 stars 117 forks source link

GatewayDispatchPayload doesn't include GatewayGuildAuditLogEntryCreateDispatch #714

Closed IRONM00N closed 1 year ago

IRONM00N commented 1 year ago

Issue description

  1. Go to GatewayDispatchPayload
  2. Observe it does not include GatewayGuildAuditLogEntryCreateDispatch

introduced in #692

Code sample

import { GatewayDispatchEvents, GatewayDispatchPayload } from 'discord-api-types/v10';

type Payload = {
    [K in GatewayDispatchPayload['t']]: any;
};
type Events = {
    [K in GatewayDispatchEvents]: any;
};

type Check = Payload[keyof Events];
//                   ^ Property 'GUILD_AUDIT_LOG_ENTRY_CREATE' does not exist on type 'Payload'

Package version

0.37.32

Runtime

Node.js

Runtime version

v19.6.0

Priority this issue should have

Medium (should be fixed soon)

vladfrangu commented 1 year ago

Aaa. Feel free to PR and we'll expedite a release for it