Chaddiedaddie - I tried to follow the Getting sta...

I tried to follow the "Getting started with Sapphire" part of the guide on the sapphire website and I don't really know what I am doing. I pasted this code and replaced the 'your-token-goes-here' with my token but I am getting the following error messages :
Type '"GUILDS"' is not assignable to type 'number | `${bigint}` | "Guilds" ...

Type '"GUILD_MESSAGES"' is not assignable to type 'number | `${bigint}` | "Guilds" ...
Type '"GUILDS"' is not assignable to type 'number | `${bigint}` | "Guilds" ...

Type '"GUILD_MESSAGES"' is not assignable to type 'number | `${bigint}` | "Guilds" ...
I don't know where you are getting the GUILDS and GUILD_MESSAGES variables from. Also I am totally new to making discord bots so general advice and resources would be helpful.
4 Replies
Spinel
Spinel3y ago
When asking for help, make sure to provide as much detail as possible. What have you tried so far? Do you have stacktraces that you can show us? What are you trying to achieve? Try to answer these questions and others, so we do not have to ask for them afterwards.
❯ For a good guide on how to ask questions, see the instructions that StackOverflow gives. You should try to always follow these guidelines. ❯ For an excellent video that shows how not to ask technical questions is this, watch this YouTube video by LiveOverflow. ❯ Asking technical questions (Clarkson)How to ask questions the smart way (Raymond)
Ben
Ben3y ago
Oops wrong tag. I meant…
Spinel
Spinel3y ago
- Did you use a folder of the examples repository or did you use the CLI to generate your bot? - What's your file/folder structure? - What's your "main" property in package.json - Are you using TypeScript? And if so, how are you compiling and running your code? - Are you using the version 2 or version 3 of @sapphire/framework? - In case you are using version 3 of @sapphire/framework, and your problem related to message commands, did you add loadMessageCommandListeners to your SapphireClient options Remember that if you are new to @sapphire/framework it is important that you read the user guide.
Lioness100
Lioness1003y ago
This error is occurring because you're using discordjs v14, which sapphire doesn't currently support You can fix this but using discord.js v13 (recommended), or by installing the experimental @sapphire/framework@pr-512
Want results from more Discord servers?
Add your server