NOT WORK SAPPHIRE
why not work bot commands?
Solution:
why not work bot commands?
K
kyra•418d ago
You say it doesn't work, but like, what even is not working?
E
Efraim•418d ago
normal commands not work reply
K
kyra•418d ago
What's the code? What's the error?
A
Auric•418d ago
interaction or message commands?
E
Efraim•418d ago
intera and message are not working
code err not reply console
S
Sean•418d ago
what's your file structure and main property set to?
E
Efraim•418d ago
i have use extending container
E
Efraim•418d ago
E
Efraim•418d ago
i
E
Efraim•418d ago
package versions latest it is have in problem?
i have only slash commands use in bot
S
Sean•418d ago
I mean the main property in package.json lol
but also that looks like a command setup for a message command not a slash command
E
Efraim•418d ago
E
Efraim•418d ago
i know bro it example msg ..
slash review also teaching time answer an essay
nodejs version?
v18.14.2 i have node v
S
Sean•418d ago
that's fine
E
Efraim•418d ago
E
Efraim•418d ago
https://www.sapphirejs.dev/docs/Guide/additional-information/using-and-extending-container#practical-example i have use this code
Sapphire Framework
Using and extending container | Sapphire
The container is a way in which Sapphire achieves Dependency Injection. This is a very useful feature, since it
E
Efraim•418d ago
commands not worked
F
Favna•418d ago
match these
F
Favna•418d ago
and you should enable
loadMessageCommandListeners
when using message based commands https://www.sapphirejs.dev/docs/Documentation/api-framework/interfaces/SapphireClientOptions#loadmessagecommandlistenersF
Favna•418d ago
that page isnt even really relevant to using commands. Refer to the getting started pages first before going to additional information.
i.e. https://www.sapphirejs.dev/docs/Guide/getting-started/creating-a-basic-command
Sapphire Framework
Creating a basic command | Sapphire
In order to start registering commands you need to create a subdirectory called commands (lowercase!) in your entry
E
Efraim•418d ago
this code not work bro
E
Efraim•418d ago
"commands" folder not check working
E
Efraim•418d ago
i transing main file
E
Efraim•418d ago
now use this is working it
this code container not work
I have the old version works, but in the new sapphire version (latest) it creates a problem, it does not run the commands.
how can i make it just use as slash?@Favna
so that it won't run with prefix?
F
Favna•418d ago
I can guarantee it does work
when used correctly
F
Favna•418d ago
we have extensive guides for setting up slash commands and there's even more info on https://discordjs.guide and https://discord.dev and you can also refer to other open source bots for code examples
discord.js Guide
Imagine a guide... that explores the many possibilities for your discord.js bot.
Discord Developer Portal
Discord Developer Portal — API Docs for Bots and Developers
Integrate your service with Discord — whether it's a bot or a game or whatever your wildest imagination can come up with.
S
Spinel•418d ago
Discord bots that use @sapphire/framework v4
- Official Bot Examples ᴱ ᴰ ᴶˢ
- Archangel ᴱ ᴰ
- Dragonite ᴱ ᴰ
- Radon ᴱ ᴬ
Discord bots that use @sapphire/framework v3
- Arima ᴱ
- Nino ᴱ ᴰ
- Operator ᴱ ᴬ ᴰ
- Sapphire Application Commands Examples ᴱ
- Spectera ᴬ
Discord bots that use @sapphire/framework v2
- Materia ᴱ
- RTByte ᴱ ᴬ
- Skyra ᴬ ᴰ
- YliasDiscordBot ᴬ
ᴱ: 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.
E
Efraim•418d ago
I will use it by watching it now thanks 😦
Welcome to the Sapphire Discord server! The next-gen object-oriented Discord.js bot framework can be found here.
2.2KMembers
View on DiscordWant results from more Discord servers?
More PostsThrowing on unhandled interactionHey, I just wanted to quickly check this idea - If I assign a listener to interaction create and theReply During CooldownCan I make the bot reply with the remaining time of cooldown delay ?messageUpdate event not Triggering```ts
import { Listener } from '@sapphire/framework';
import type { Message } from 'discord.js';
exp'"discord.js"' has no exported member named 'WebhookEditMessageOptions'. Did you mean 'WebhookFetchMError: '"discord.js"' has no exported member named 'WebhookEditMessageOptions'. Did you mean 'WebhooMonoreposDoes Sapphire work and play nice with monorepos?Question regarding slash commands / aliasesHi, is there a way for me to register command aliases as slash commands as well?
For example:
Commandisable commands by dashboard.I want to disable commands through dashboard so, is there any way to dynamically disable commands ?What is the difference between response.status and response.statusCode ?When using the API Plugin of Sapphire.Hey what is DEVELOPMENT MODE and how do I disable itI tried setting the Node_Env to something else but it did not change it in the consoleBotList Autopost of stats is not workingI am using the bot list plugin
https://github.com/devtomio/sapphire-plugin-botlist
I set everything Miss matching objects on permission setting.Typescript says that permissionOverwrites does not exits in GuildBasedChannel, even tho it exists, irequiredClientPermissions check always rejectingWhile `requiredUserPermissions: ['ManageRoles']` works great. The client check `requiredClientPermisUnable to get member data from users that have left / kickedHi, I am trying to get data from members who have left the discord server or have been kicked. But ICatch all chat input command errors listenerHello ! I tried using the `Events.ChatInputCommandError` listener to catch any errors thrown by the Multiple Clients on one file/instanceI was wondering if its possible to run multiple clients on one file (i.e. .forEach()-ing `new ClientHow to present Slashcommands?How can I present the Slashcommands of my bot in his About Me like for example carl.gg does?Interaction HandlersAm I required to specify to sapphire where my interaction handlers directory is? A `interaction-handbot won't get on and connect to discord.hi, my bot won't turn on. i've coded a lot of bots before with sapphire and they worked just fine, dHow Do I Make a Project in my current Directory?I want to make the proj in `workspaces/DashMate` not like `workspaces/DashMate/${ProjName}`Bot wont go onlinewhen I try to run the script `yarn dev` I get this problem