sapphire-support
discordjs-support
old-sapphire-support
old-discordjs-support
old-application-commands-and-interactions
How to use windows env variables using skyra env utilities
Pattern for fetching all registered slash commands
/help
slash command that shows all the available guild commands and their description? I want to get the names and descriptions for all the slash commands.
I realize I can use the raw discord client to fetch that registered commands and parse then use that. However, I'm trying to see if it's possible to avoid making those additional network calls.
Thanks....client.stores.get('commands')
Precondition with Slash Command
this.error({ message: 'error' });
in precondition, it does nothing.
```js...How to use skyra env utilities with the cli generated project?
MONGO=URI
MONGO=URI
How to get the current channel a slash command was used in
const target= await interaction.guild?.channels.cache.get('id');
const target= await interaction.guild?.channels.cache.get('id');
client.channels.fetch(process.env.BOT_REPORT_CHANNEL_ID)
...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