Sapphire - Imagine a framework
Sapphire - Imagine a framework

sapphire-support

Root Question Message

Acronie
Acronie12/25/2022
Commands not working

I created a command and it won't work.
Acronie
Acronie12/25/2022
I created a command the bot would initialise and start but I don't think so the commands are being loaded
Acronie
Acronie12/25/2022
it doesn't work with a default prefix i am initialising it with
Acronie
Acronie12/25/2022
@bot command works
24
2412/25/2022
Uhg
24
2412/25/2022
What's the stupid tag for sapphire support questions
24
2412/25/2022
Yes that thanks
const name = args.pick('sean');
const name = args.pick('sean');12/25/2022
regular-problems ftw
24
2412/25/2022
Dumb name
Acronie
Acronie12/25/2022
import { SapphireClient } from '@sapphire/framework'
import { config } from 'dotenv'
config()

const client = new SapphireClient({
  intents: ['GUILDS', 'GUILD_MEMBERS', 'GUILD_MESSAGES', 'GUILD_VOICE_STATES'],
  defaultPrefix: '.',
  loadMessageCommandListeners: true,
})
client.login(process.env.BOT_TOKEN)
loaded the messgeCommandListeners
Acronie
Acronie12/25/2022
file structure is fine too
Acronie
Acronie12/25/2022
"main": "dist/index.js", main too
Acronie
Acronie12/25/2022
and using tsc-watch
Acronie
Acronie12/25/2022
which is fien too
const name = args.pick('sean');
const name = args.pick('sean');12/25/2022
Do you have the message content intent in the dev panel?
const name = args.pick('sean');
const name = args.pick('sean');12/25/2022
(Its a priviledged intent)
Acronie
Acronie12/25/2022
yes
Acronie
Acronie12/25/2022
it works
Acronie
Acronie12/25/2022
@bot command
Acronie
Acronie12/25/2022
but not with the default prefix
const name = args.pick('sean');
const name = args.pick('sean');12/25/2022
Discord gives the bot the message content regardless if you ping it, so it not working suggests that it doesnt have the message content intent
Acronie
Acronie12/25/2022
No i am saying the command works when I ping it and use the command
Acronie
Acronie12/25/2022
so it has the message content
Acronie
Acronie12/25/2022
it doesn't work when I use the prefix .command
ContactFrequently Asked QuestionsJoin The DiscordBugs & Feature RequestsTerms & Privacy