From de033417fc0ab3d644c47a6fa473c9e729680466 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Sun, 1 Jun 2025 19:40:07 +0000 Subject: [PATCH] fix: error in getSuccessEmoji/getErrorEmoji --- backend/src/plugins/Common/CommonPlugin.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/src/plugins/Common/CommonPlugin.ts b/backend/src/plugins/Common/CommonPlugin.ts index 6befad91..7e57fc29 100644 --- a/backend/src/plugins/Common/CommonPlugin.ts +++ b/backend/src/plugins/Common/CommonPlugin.ts @@ -1,6 +1,6 @@ import { Attachment, MessageMentionOptions, SendableChannels, TextBasedChannel } from "discord.js"; import { guildPlugin } from "knub"; -import { GenericCommandSource, sendContextResponse } from "../../pluginUtils.js"; +import { GenericCommandSource, makePublicFn, sendContextResponse } from "../../pluginUtils.js"; import { errorMessage, successMessage } from "../../utils.js"; import { getErrorEmoji, getSuccessEmoji } from "./functions/getEmoji.js"; import { CommonPluginType, zCommonConfig } from "./types.js"; @@ -11,8 +11,8 @@ export const CommonPlugin = guildPlugin()({ configSchema: zCommonConfig, public(pluginData) { return { - getSuccessEmoji, - getErrorEmoji, + getSuccessEmoji: makePublicFn(pluginData, getSuccessEmoji), + getErrorEmoji: makePublicFn(pluginData, getErrorEmoji), sendSuccessMessage: async ( context: GenericCommandSource | SendableChannels,