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,