Fozzie
SIASapphire - Imagine a framework
•Created by Fozzie on 8/9/2024 in #sapphire-support
Issue with application commands after logging in after client#destroy()
If I login after doing client.destroy(), the bot logs in fine, but the application commands aren't registered again. Am I doing something wrong?
Some example code:
The first login I get (I am logging
Bot has connected
on the ready event):
But on the second login I only get:
So it seems like ApplicationCommandRegistries isn't being initialised again. Should I be recreating the SapphireClient, or is there another way I should be doing this? Thanks!26 replies
SIASapphire - Imagine a framework
•Created by Fozzie on 5/15/2024 in #sapphire-support
Sapphire "no such file or directory" error
I know I like to only have weird bugs, but this is a new level even for me. Updating
@sentry/node
from ^7.114.0
to ^8.0.0
causes the following error in Sapphire on startup (not just for messageUpdate, for loads of other files as well):
Any ideas? Is this likely an upstream issue?11 replies
SIASapphire - Imagine a framework
•Created by Fozzie on 6/18/2023 in #sapphire-support
Event before interaction handlers are ran
There are
ChatInputCommandRun
and ContextMenuCommandRun
events, which are emitted before the run method. Is there anything similar for interaction handlers which is emitted after parse but before run?12 replies
SIASapphire - Imagine a framework
•Created by Fozzie on 2/24/2023 in #sapphire-support
autoModerationActionExecution Event
Does Sapphire not emit the Discord.js
autoModerationActionExecution
event?
The following code doesn't seem to trigger:
autoModerationActionExecution.ts
I could be doing something completely wrong though!9 replies
SIASapphire - Imagine a framework
•Created by Fozzie on 1/10/2023 in #sapphire-support
Context menu commands not being registered
Hi, on updating to v4 I experienced the following error:
I imagined this might be caused by the migration, so I deleted the application command and removed the idHints, but now the context menu won't even register at all. I'm not getting any error or output in the console using the following code:
Has there been a change I'm missing here?
41 replies
SIASapphire - Imagine a framework
•Created by Fozzie on 12/19/2022 in #sapphire-support
API error event handler
Hi, when I get a DiscordAPIError through the logger that starts like this:
Is there a singular event to capture these without listening to multiple events such as
chatInputCommandError
, commandAutocompleteInteractionError
and contextMenuCommandError
etc?4 replies