From c8223b5768023c5834454be0ea221d8cfb6d181c Mon Sep 17 00:00:00 2001 From: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com> Date: Fri, 17 Jun 2022 21:20:10 +0000 Subject: [PATCH] fix: forgot to push this --- plugins/helpers/mod.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/plugins/helpers/mod.ts b/plugins/helpers/mod.ts index 3a48c3461..f2e798629 100644 --- a/plugins/helpers/mod.ts +++ b/plugins/helpers/mod.ts @@ -5,6 +5,7 @@ import { Collection, CreateMessage, FinalHelpers, + InteractionResponse, ListGuildMembers, Member, Message, @@ -20,6 +21,7 @@ import { moveMember } from "./src/moveMember.ts"; import { fetchAndRetrieveMembers } from "./src/fetchAndRetrieveMembers.ts"; import { BotWithCache } from "../cache/src/addCacheCollections.ts"; import { sendTextMessage } from "./src/sendTextMessage.ts"; +import { sendPrivateInteractionResponse } from "./src/sendPrivateInteractionResponse.ts"; export type BotWithHelpersPlugin = Omit & HelperFunctionsFromHelperPlugin; @@ -36,6 +38,11 @@ export interface HelperFunctionsFromHelperPlugin { channelId: bigint, content: string | CreateMessage, ) => Promise; + sendPrivateInteractionResponse: ( + id: bigint, + token: string, + options: InteractionResponse, + ) => Promise; suppressEmbeds: ( channelId: bigint, messageId: bigint, @@ -89,6 +96,11 @@ export function enableHelpersPlugin(rawBot: B): BotWithHelp channelId: bigint, content: string | CreateMessage, ) => sendTextMessage(bot, channelId, content); + bot.helpers.sendPrivateInteractionResponse = ( + id: bigint, + token: string, + options: InteractionResponse, + ) => sendPrivateInteractionResponse(bot, id, token, options); bot.helpers.suppressEmbeds = (channelId: bigint, messageId: bigint) => suppressEmbeds(bot, channelId, messageId); bot.helpers.archiveThread = (threadId: bigint) => archiveThread(bot, threadId); bot.helpers.unarchiveThread = (threadId: bigint) => unarchiveThread(bot, threadId);