mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 19:28:17 +00:00
refactor(controllers): separate controllers into different files (#657)
* refactor(controllers): separate controller into files * add CHANNEL_UPDATE * guilds * interactions * members * messages * finally * done * fix ci * fixes
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import { eventHandlers } from "../../../bot.ts";
|
||||
import { DiscordPayload, IntegrationDeleteEvent } from "../../../types/mod.ts";
|
||||
|
||||
export function handleIntegrationDelete(data: DiscordPayload) {
|
||||
const {
|
||||
guild_id: guildID,
|
||||
application_id: applicationID,
|
||||
...rest
|
||||
} = data.d as IntegrationDeleteEvent;
|
||||
|
||||
eventHandlers.integrationDelete?.({
|
||||
...rest,
|
||||
applicationID,
|
||||
guildID,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user