mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
little changes
This commit is contained in:
1 parent
862f326996
commit
b7252fccaf
41 files changed
+261
-228
No files matched your search
+3
-2
@@ -8,6 +8,7 @@ import { Message, getGlobalColor } from "../src/MessageHandler.mjs";
|
||||
import { EmbedBuilder } from "@fluxerjs/core";
|
||||
import { PROVIDER_CHOICES, PROVIDER_NAMES, parseInlineProvider } from "../src/constants/providers.mjs";
|
||||
import { NUMBER_EMOJIS, CANCEL_EMOJI } from "../src/constants/UI.mjs";
|
||||
import { logger } from "../src/constants/Logger.mjs";
|
||||
|
||||
export const command = new CommandBuilder()
|
||||
.setName("search")
|
||||
@@ -38,7 +39,7 @@ export const command = new CommandBuilder()
|
||||
/**
|
||||
* Execute the search command.
|
||||
* @param {import("../src/MessageHandler.mjs").Message} msg - The incoming message
|
||||
* @param {Map<string, {value: *}>>} data - Slash-command options map
|
||||
* @param {Map<string, {value: *}>} data - Slash-command options map
|
||||
* @returns {Promise<void>}
|
||||
*/
|
||||
export async function run(msg, data) {
|
||||
@@ -115,7 +116,7 @@ export async function run(msg, data) {
|
||||
const clearReactions = async () => {
|
||||
try {
|
||||
await rawMsg.removeAllReactions();
|
||||
} catch(e) { }
|
||||
} catch(e) { logger.warn("[Search] Error:", e?.message); }
|
||||
};
|
||||
|
||||
const wrapped = new Message(rawMsg, this.messages);
|
||||
|
||||
Reference in new issue
Block a user