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
@@ -6,6 +6,7 @@
|
||||
import { CommandBuilder } from "../src/CommandHandler.mjs";
|
||||
import { EmbedBuilder } from "@fluxerjs/core";
|
||||
import { getGlobalColor } from "../src/MessageHandler.mjs";
|
||||
import { logger } from "../src/constants/Logger.mjs";
|
||||
import { NUMBER_EMOJIS, CANCEL_EMOJI, PREV_EMOJI, NEXT_EMOJI } from "../src/constants/UI.mjs";
|
||||
|
||||
|
||||
@@ -26,7 +27,7 @@ export const command = function() {
|
||||
/**
|
||||
* Execute the radio 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) {
|
||||
@@ -69,7 +70,7 @@ export async function run(msg, data) {
|
||||
await rawMsg.removeAllReactions();
|
||||
} catch (_) {
|
||||
for (const emoji of baseEmojis) {
|
||||
try { await rawMsg.removeReaction(emoji); } catch(e) { }
|
||||
try { await rawMsg.removeReaction(emoji); } catch(e) { logger.warn("[Radio] Error:", e?.message); }
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user