mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-07-06 18:47:20 +00:00
fix: error in getSuccessEmoji/getErrorEmoji
This commit is contained in:
parent
f4d728ea25
commit
de033417fc
1 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
import { Attachment, MessageMentionOptions, SendableChannels, TextBasedChannel } from "discord.js";
|
import { Attachment, MessageMentionOptions, SendableChannels, TextBasedChannel } from "discord.js";
|
||||||
import { guildPlugin } from "knub";
|
import { guildPlugin } from "knub";
|
||||||
import { GenericCommandSource, sendContextResponse } from "../../pluginUtils.js";
|
import { GenericCommandSource, makePublicFn, sendContextResponse } from "../../pluginUtils.js";
|
||||||
import { errorMessage, successMessage } from "../../utils.js";
|
import { errorMessage, successMessage } from "../../utils.js";
|
||||||
import { getErrorEmoji, getSuccessEmoji } from "./functions/getEmoji.js";
|
import { getErrorEmoji, getSuccessEmoji } from "./functions/getEmoji.js";
|
||||||
import { CommonPluginType, zCommonConfig } from "./types.js";
|
import { CommonPluginType, zCommonConfig } from "./types.js";
|
||||||
|
@ -11,8 +11,8 @@ export const CommonPlugin = guildPlugin<CommonPluginType>()({
|
||||||
configSchema: zCommonConfig,
|
configSchema: zCommonConfig,
|
||||||
public(pluginData) {
|
public(pluginData) {
|
||||||
return {
|
return {
|
||||||
getSuccessEmoji,
|
getSuccessEmoji: makePublicFn(pluginData, getSuccessEmoji),
|
||||||
getErrorEmoji,
|
getErrorEmoji: makePublicFn(pluginData, getErrorEmoji),
|
||||||
|
|
||||||
sendSuccessMessage: async (
|
sendSuccessMessage: async (
|
||||||
context: GenericCommandSource | SendableChannels,
|
context: GenericCommandSource | SendableChannels,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue