types: fix GuildAuditLogsTypes keys & typos (#7423)

This commit is contained in:
Almeida
2022-02-09 08:16:52 +00:00
committed by GitHub
parent 83458ff7c7
commit 3d8c77600b

View File

@@ -247,17 +247,17 @@ export class ApplicationCommand<PermissionsFetchType = {}> extends Base {
public setOptions(options: ApplicationCommandOptionData[]): Promise<ApplicationCommand<PermissionsFetchType>>; public setOptions(options: ApplicationCommandOptionData[]): Promise<ApplicationCommand<PermissionsFetchType>>;
public equals( public equals(
command: ApplicationCommand | ApplicationCommandData | RawApplicationCommandData, command: ApplicationCommand | ApplicationCommandData | RawApplicationCommandData,
enforceOptionorder?: boolean, enforceOptionOrder?: boolean,
): boolean; ): boolean;
public static optionsEqual( public static optionsEqual(
existing: ApplicationCommandOption[], existing: ApplicationCommandOption[],
options: ApplicationCommandOption[] | ApplicationCommandOptionData[] | APIApplicationCommandOption[], options: ApplicationCommandOption[] | ApplicationCommandOptionData[] | APIApplicationCommandOption[],
enforceOptionorder?: boolean, enforceOptionOrder?: boolean,
): boolean; ): boolean;
private static _optionEquals( private static _optionEquals(
existing: ApplicationCommandOption, existing: ApplicationCommandOption,
options: ApplicationCommandOption | ApplicationCommandOptionData | APIApplicationCommandOption, options: ApplicationCommandOption | ApplicationCommandOptionData | APIApplicationCommandOption,
enforceOptionorder?: boolean, enforceOptionOrder?: boolean,
): boolean; ): boolean;
private static transformOption(option: ApplicationCommandOptionData, received?: boolean): unknown; private static transformOption(option: ApplicationCommandOptionData, received?: boolean): unknown;
private static transformCommand(command: ApplicationCommandData): RESTPostAPIApplicationCommandsJSONBody; private static transformCommand(command: ApplicationCommandData): RESTPostAPIApplicationCommandsJSONBody;
@@ -798,7 +798,7 @@ export class ContextMenuCommandInteraction<Cached extends CacheType = CacheType>
export class DataResolver extends null { export class DataResolver extends null {
private constructor(); private constructor();
public static resolveBase64(data: Base64Resolvable): string; public static resolveBase64(data: Base64Resolvable): string;
public static resolveCode(data: string, regx: RegExp): string; public static resolveCode(data: string, regex: RegExp): string;
public static resolveFile(resource: BufferResolvable | Stream): Promise<Buffer>; public static resolveFile(resource: BufferResolvable | Stream): Promise<Buffer>;
public static resolveImage(resource: BufferResolvable | Base64Resolvable): Promise<string | null>; public static resolveImage(resource: BufferResolvable | Base64Resolvable): Promise<string | null>;
public static resolveInviteCode(data: InviteResolvable): string; public static resolveInviteCode(data: InviteResolvable): string;
@@ -4074,10 +4074,10 @@ interface GuildAuditLogsTypes {
StageInstanceDelete: ['StageInstance', 'Delete']; StageInstanceDelete: ['StageInstance', 'Delete'];
StickerCreate: ['Sticker', 'Create']; StickerCreate: ['Sticker', 'Create'];
StickerUpdate: ['Sticker', 'Update']; StickerUpdate: ['Sticker', 'Update'];
StickerDelete: ['Sticket', 'Delete']; StickerDelete: ['Sticker', 'Delete'];
GUILD_SCHEDULED_EVENT_CREATE: ['GuildScheduledEvent', 'Create']; GuildScheduledEventCreate: ['GuildScheduledEvent', 'Create'];
GUILD_SCHEDULED_EVENT_UPDATE: ['GuildScheduledEvent', 'Update']; GuildScheduledEventUpdate: ['GuildScheduledEvent', 'Update'];
GUILD_SCHEDULED_EVENT_DELETE: ['GuildScheduledEvent', 'Delete']; GuildScheduledEventDelete: ['GuildScheduledEvent', 'Delete'];
ThreadCreate: ['Thread', 'Create']; ThreadCreate: ['Thread', 'Create'];
ThreadUpdate: ['Thread', 'Update']; ThreadUpdate: ['Thread', 'Update'];
ThreadDelete: ['Thread', 'Delete']; ThreadDelete: ['Thread', 'Delete'];