sapphire-support
discordjs-support
old-sapphire-support
old-discordjs-support
old-application-commands-and-interactions
How do I listen for reactions on all messages in a channel?
run
function. but for some reason i can't even get a simple log to work rn. what am i doing wrong here?
```ts
// src/listeners/reaction.ts
...MessageCreate Event isn't working
messageCreate.<ext>
or add a constructor with name: Events.MessageCreate
(which resolves to name: 'messageCreate'
Reply During Cooldown
Reflect.get(Object(context), 'remaining');
Reflect.get(Object(context), 'remaining');
messageUpdate event not Triggering
'"discord.js"' has no exported member named 'WebhookEditMessageOptions'. Did you mean 'WebhookFetchM
sapphire new
- typescript complete
I just changed WebhookEditMessageOptions with WebhookEditMessageOptions...Monorepos
Question regarding slash commands / aliases
one
has aliases: ['two', 'three']
Is it possible for the command to be run via all of these: /one
. /two
and /three
? They can have the same description and options....disable commands by dashboard.
What is the difference between response.status and response.statusCode ?
Hey what is DEVELOPMENT MODE and how do I disable it
BotList Autopost of stats is not working
Miss matching objects on permission setting.
!isStageChannel(channel)
(function from @sapphire/discord.js-utilities
) to eliminate the StageChannel
type...requiredClientPermissions check always rejecting
requiredUserPermissions: ['ManageRoles']
works great. The client check requiredClientPermissions: ['ManageRoles']
seems to always block.
It is throwing not a specific missing permissions error but an I was unable to resolve my permissions in the ${commandType} command invocation channel.
Unless I am doing something wrong, it looks like the problem is that the check is referencing the application id channel.permissionsFor(interaction.applicationId)
when it should be referencing either the clients guild member or user ID.
https://github.com/sapphiredev/framework/blob/179b21e7f74c4d9a506e1be98d7487f939ec0ae7/src/preconditions/ClientPermissions.ts#L71...Unable to get member data from users that have left / kicked
Catch all chat input command errors listener
Events.ChatInputCommandError
listener to catch any errors thrown by the chat input command, but it never seems to catch any errors.
Am I missing something?...Multiple Clients on one file/instance
new Client()
)?
I tried a basic implementation and the commands we're spammed after running one once (see screenshot)...container
which exists as a singleton (only one instance).
I don't know why you want to do this, but worker threads or forks are your only way....How to present Slashcommands?
Interaction Handlers
interaction-handlers
directory doesn't seem to be detected.
- ├─ Loaded 0 interaction-handlers.
...bot won't get on and connect to discord.
"yarn watch:start"
- "watch:start": "tsc-watch --onSuccess \"node ./dist/index.js\""
it just won't turn on....