Skip to content

Commit de03341

Browse files
committed
fix: error in getSuccessEmoji/getErrorEmoji
1 parent f4d728e commit de03341

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

backend/src/plugins/Common/CommonPlugin.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Attachment, MessageMentionOptions, SendableChannels, TextBasedChannel } from "discord.js";
22
import { guildPlugin } from "knub";
3-
import { GenericCommandSource, sendContextResponse } from "../../pluginUtils.js";
3+
import { GenericCommandSource, makePublicFn, sendContextResponse } from "../../pluginUtils.js";
44
import { errorMessage, successMessage } from "../../utils.js";
55
import { getErrorEmoji, getSuccessEmoji } from "./functions/getEmoji.js";
66
import { CommonPluginType, zCommonConfig } from "./types.js";
@@ -11,8 +11,8 @@ export const CommonPlugin = guildPlugin<CommonPluginType>()({
1111
configSchema: zCommonConfig,
1212
public(pluginData) {
1313
return {
14-
getSuccessEmoji,
15-
getErrorEmoji,
14+
getSuccessEmoji: makePublicFn(pluginData, getSuccessEmoji),
15+
getErrorEmoji: makePublicFn(pluginData, getErrorEmoji),
1616

1717
sendSuccessMessage: async (
1818
context: GenericCommandSource | SendableChannels,

0 commit comments

Comments
 (0)