mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 11:28:15 +00:00
Update APPLICATION_COMMAND_UPDATE.ts
This commit is contained in:
@@ -7,12 +7,6 @@ import {
|
|||||||
import { snakeKeysToCamelCase } from "../../util/utils.ts";
|
import { snakeKeysToCamelCase } from "../../util/utils.ts";
|
||||||
|
|
||||||
export function handleApplicationCommandUpdate(data: DiscordGatewayPayload) {
|
export function handleApplicationCommandUpdate(data: DiscordGatewayPayload) {
|
||||||
const {
|
|
||||||
application_id: applicationId,
|
|
||||||
guild_id: guildId,
|
|
||||||
...rest
|
|
||||||
} = data.d as DiscordApplicationCommandCreateUpdateDelete;
|
|
||||||
|
|
||||||
eventHandlers.applicationCommandUpdate?.(
|
eventHandlers.applicationCommandUpdate?.(
|
||||||
snakeKeysToCamelCase<ApplicationCommandCreateUpdateDelete>(
|
snakeKeysToCamelCase<ApplicationCommandCreateUpdateDelete>(
|
||||||
data.d as DiscordApplicationCommandCreateUpdateDelete,
|
data.d as DiscordApplicationCommandCreateUpdateDelete,
|
||||||
|
|||||||
Reference in New Issue
Block a user