diff options
author | Erkin Alp Güney <erkinalp9035@gmail.com> | 2023-01-14 11:15:35 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-14 19:15:35 +1100 |
commit | 876c15b1a9ed8ee9343cc0c00743b42c69712a6c (patch) | |
tree | 3ea7c6c211c7b39aa8582980dbccee1dcac9869a /src/util/interfaces | |
parent | Merge pull request #929 from fosscord/dev/fix-client-script (diff) | |
download | server-876c15b1a9ed8ee9343cc0c00743b42c69712a6c.tar.xz |
Add /users/:id/delete (#926)
Diffstat (limited to 'src/util/interfaces')
-rw-r--r-- | src/util/interfaces/Event.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/util/interfaces/Event.ts b/src/util/interfaces/Event.ts index b772c3e4..c88d5750 100644 --- a/src/util/interfaces/Event.ts +++ b/src/util/interfaces/Event.ts @@ -393,6 +393,13 @@ export interface UserUpdateEvent extends Event { data: User; } +export interface UserDeleteEvent extends Event { + event: "USER_DELETE"; + data: { + user_id: string; + }; +} + export interface VoiceStateUpdateEvent extends Event { event: "VOICE_STATE_UPDATE"; data: VoiceState & { @@ -533,6 +540,7 @@ export type EventData = | PresenceUpdateEvent | TypingStartEvent | UserUpdateEvent + | UserDeleteEvent | VoiceStateUpdateEvent | VoiceServerUpdateEvent | WebhooksUpdateEvent @@ -583,6 +591,7 @@ export enum EVENTEnum { PresenceUpdate = "PRESENCE_UPDATE", TypingStart = "TYPING_START", UserUpdate = "USER_UPDATE", + UserDelete = "USER_DELETE", WebhooksUpdate = "WEBHOOKS_UPDATE", InteractionCreate = "INTERACTION_CREATE", VoiceStateUpdate = "VOICE_STATE_UPDATE", @@ -633,6 +642,7 @@ export type EVENT = | "PRESENCE_UPDATE" | "TYPING_START" | "USER_UPDATE" + | "USER_DELETE" | "USER_NOTE_UPDATE" | "WEBHOOKS_UPDATE" | "INTERACTION_CREATE" |