sapphire-support
discordjs-support
old-sapphire-support
old-discordjs-support
old-application-commands-and-interactions
Preventing Commands in DMs
runIn: 'GUILD_ANY' to your command options. This will only the command to be run in guild channels. If you want to specify a type of channel there are opttions for thatautoModerationActionExecution Event
autoModerationActionExecution event?
The following code doesn't seem to trigger:
autoModerationActionExecution.ts
```ts...AUTO_MODERATION_EXECUTION is a completely separate intent https://discord.com/developers/docs/topics/gateway#gateway-intentsHelp canceling a command
What parameter do I pass to the run method in my GuildCreate listener?
public run(guild: Guild) {} ?
Problem with this.container.stores.get().get();
this.container doesn't exist. Instead, import container from @sapphire/framework directly.InteractionCreate file
interactionCreate? I need it for some UI Abilities, and I am not sure if it overrides something...How to Create Threads?
Command info
args.pick("member")
args.pick("member"), is it intended to get the member even if you just provide 1 letter of their username? if yes, is there any way to prevent it?why does this not work in sapphire
const util = require("./utils");
const util = require("./utils");
This code is not running on sapphire
async before the run and also add this code before the async run(client) {} part
```js
constructor(context, options) {
super(context, {...Bot stalls while registering commands
How to edit an Embed(Documentation isn't working)
message.edit is not a function. I am following the direct steps from the documentation and it is not working. Why and how do I fix this issue?
```ts...Schdeduler SQS Options in index.ts
Will using the new plugin-utilities-store enable HMR for this Helper files?
"Send" does not exist on type "channel"
How can I create a listener for @discordjs/voice states?
@sapphire/shapeshift (?) crashes bot when trying to send embed with description exceeding 4096 chars
message.createMessageComponentCollector method. I do all this inside messageRun method. The bot send the info embed with button just fine, but when button is pressed to fetch the public events of a github user, it basically crashes bot even when I wrap my whole login inside messageRun in a try-catch block, it still crashes bot because sometimes embed description is set to long string of 4096+ chars which the button interaction would send. The full error I get is here: https://gist.github.com/o-wo/c53217fdcca9d547bba353213a865e4d
I cant figure out what I did wrong, I only want to understand what is crashing the bot: shapeshift or sapphire or its d.js issue? and why it is straight up crashing the bot? even when I put whole code logic inside try catch block. Since error log I see in console mentions shapeshift in many places, it suspects me to believe its causing this? hence I put question mark in post title. apologies for any misunderstanding on my part.
If any experts can point a novice like me in right direction or help me understand its cause, your kindness would be immensely appreciated. 🙏🏽...error listener. Are you sure you haven't implemented a re-throwing mechanism in your own error or messageError listener?...