3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-07-05 18:27:18 +00:00

fix: error in getSuccessEmoji/getErrorEmoji

This commit is contained in:
Dragory 2025-06-01 19:40:07 +00:00
parent f4d728ea25
commit de033417fc
No known key found for this signature in database

View file

@ -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<CommonPluginType>()({
configSchema: zCommonConfig,
public(pluginData) {
return {
getSuccessEmoji,
getErrorEmoji,
getSuccessEmoji: makePublicFn(pluginData, getSuccessEmoji),
getErrorEmoji: makePublicFn(pluginData, getErrorEmoji),
sendSuccessMessage: async (
context: GenericCommandSource | SendableChannels,