Errors and their listeners

In my commands when I want to throw an error I just use throw '<message>' and then send an embed with that error using the MessageCommandError event listener. This works fine however It also logs to my console, which is really annoying me. Is there a way to disable this?
7 Replies
Favna
Favna5mo ago
Set that to false
dan
danOP5mo ago
Thanks favna Unrelated question to this post but it seems like the editable commands plugin is not working for me. I'm using send and reply and when I edit the message nothing seems to happen
Favna
Favna5mo ago
did you import the /register ?
dan
danOP5mo ago
I did, but for whatever reason when I ran tsc the new command didn't compile, after I deleted dist and ran tsc again it worked fine
Favna
Favna5mo ago
sounds like some kind of TS config issue. Please make a separate thread and you can also check https://github.com/sapphiredev/examples/tree/main/examples/with-typescript-starter or other bots from
GitHub
examples/examples/with-typescript-starter at main · sapphiredev/exa...
Various examples of setting up your bot with the Sapphire Framework - sapphiredev/examples
Spinel
Spinel5mo ago
Discord Bots using @sapphire/framework v5.x - Gemboard ᴱ ᴰ - Skyra ᴱ ᴬ ᴰ - Dragonite ᴱ ᴰ - Archangel ᴱ ᴰ - Official Bot Examples ᴱ ᴰ ᴶˢ - KBot ᴱ ᴬ ᴰ - Perpetual Mechanical Array ᴰ v4.x - Radon ᴱ ᴬ - Sapphire Application Commands Examples ᴱ - Zeyr ᴰ ᴬ - Birthdayy ᴰ - RTByte ᴱ ᴬ Legend for the identifiers : Uses ESM (if not specified then uses CJS) : Advanced bot (if not specified it is a simple bot, or not graded) : Uses Docker in production ᴶˢ: Written in JavaScript. If not specified then the bot is written in TypeScript.
Want results from more Discord servers?
Add your server