mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 03:18:17 +00:00
run fmt
This commit is contained in:
@@ -14,7 +14,7 @@ import { validateComponents } from "../../util/utils.ts";
|
|||||||
export async function sendInteractionResponse(
|
export async function sendInteractionResponse(
|
||||||
id: bigint,
|
id: bigint,
|
||||||
token: string,
|
token: string,
|
||||||
options: DiscordenoInteractionResponse
|
options: DiscordenoInteractionResponse,
|
||||||
) {
|
) {
|
||||||
// TODO: add more options validations
|
// TODO: add more options validations
|
||||||
if (options.data?.components) validateComponents(options.data?.components);
|
if (options.data?.components) validateComponents(options.data?.components);
|
||||||
@@ -25,7 +25,7 @@ export async function sendInteractionResponse(
|
|||||||
endpoints.WEBHOOK(applicationId, token),
|
endpoints.WEBHOOK(applicationId, token),
|
||||||
{
|
{
|
||||||
...options,
|
...options,
|
||||||
}
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -34,7 +34,7 @@ export async function sendInteractionResponse(
|
|||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
eventHandlers.debug?.(
|
eventHandlers.debug?.(
|
||||||
"loop",
|
"loop",
|
||||||
`Running setTimeout in send_interaction_response file.`
|
`Running setTimeout in send_interaction_response file.`,
|
||||||
);
|
);
|
||||||
cache.executedSlashCommands.delete(token);
|
cache.executedSlashCommands.delete(token);
|
||||||
}, 900000);
|
}, 900000);
|
||||||
@@ -52,6 +52,6 @@ export async function sendInteractionResponse(
|
|||||||
return await rest.runMethod(
|
return await rest.runMethod(
|
||||||
"post",
|
"post",
|
||||||
endpoints.INTERACTION_ID_TOKEN(id, token),
|
endpoints.INTERACTION_ID_TOKEN(id, token),
|
||||||
options
|
options,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user