Sapphire - Imagine a framework
Sapphire - Imagine a framework

old-sapphire-support

Root Question Message

WhacK
WhacK11/21/2022
I upgraded my existing sapphire bot to typescript and altered some things. My commands are not being responded to anymore. I used the cli to make this new version.

Log
8:10:50 PM - Found 0 errors. Watching for file changes.
2022-11-20 20:10:51 - INFO  - Logging in
2022-11-20 20:10:52 - INFO  - logged in
2022-11-20 20:10:52 - INFO  - Connected to MongoDB
2022-11-20 20:10:52 - INFO  - ApplicationCommandRegistries: Initializing...
1.0.0
        [+] Gateway
        </> DEVELOPMENT MODE
2022-11-20 20:10:52 - INFO  - ├─ Loaded 26  arguments.
2022-11-20 20:10:52 - INFO  - ├─ Loaded 0   commands.
2022-11-20 20:10:52 - INFO  - ├─ Loaded 0   interaction-handlers.
2022-11-20 20:10:52 - INFO  - ├─ Loaded 40  listeners.
2022-11-20 20:10:52 - INFO  - ├─ Loaded 15  preconditions.
2022-11-20 20:10:52 - INFO  - ├─ Loaded 1   routes.
2022-11-20 20:10:52 - INFO  - ├─ Loaded 3   mediaParsers.
2022-11-20 20:10:52 - INFO  - └─ Loaded 3   middlewares.

Dependencies:
{"main": "dist/beholder.js",
"private": true,
"type": "commonjs",
"dependencies": {
        "@sapphire/decorators": "^4.3.8",
        "@sapphire/discord-utilities": "next",
        "@sapphire/discord.js-utilities": "next",
        "@sapphire/fetch": "^2.4.1",
        "@sapphire/framework": "next",
        "@sapphire/plugin-api": "next",
        "@sapphire/plugin-editable-commands": "next",
        "@sapphire/plugin-logger": "next",
        "@sapphire/plugin-subcommands": "next",
        "@sapphire/time-utilities": "^1.7.5",
        "@sapphire/type": "^2.2.4",
        "@sapphire/utilities": "^3.9.1",
        "@skyra/env-utilities": "^1.1.0",
        "colorette": "^2.0.19",
        "discord-api-types": "^0.33.5",
        "discord.js": "^13.10.2",
        "dotenv-cra": "^3.0.2",
        "mongoose": "^6.6.5",
        "reflect-metadata": "^0.1.13"
    },}

File Structure
src
> modules
>> ModuleName
>>> mode.command.ts
> listeners
> events
> routes
BeholderClient.ts (where I call 

.sapphirerc.json
{
  "projectLanguage": "ts",
  "locations": {
    "base": "src",
    "arguments": "arguments",
    "commands": "modules",
    "listeners": "listeners",
    "preconditions": "preconditions"
  },
  "customFileTemplates": {
    "enabled": false,
    "location": ""
  }
}
kaname-png
kaname-png11/21/2022
Iscommands folder no modules
WhacK
WhacK11/21/2022
Yeah it says it loads 0 commands
WhacK
WhacK11/21/2022
And doesn’t respond
kaname-png
kaname-png11/21/2022
READ again
WhacK
WhacK11/21/2022
So it cannot be renamed?
WhacK
WhacK11/21/2022
The cli and docs make it seem like you can use a custom location if you set it.
kaname-png
kaname-png11/21/2022
cli is not the framework
kaname-png
kaname-png11/21/2022
and to change that route is a separate concept
kaname-png
kaname-png11/21/2022
about stores
kaname-png
kaname-png11/21/2022
in the framework
WhacK
WhacK11/21/2022
ok thank you for your help!
ContactFrequently Asked QuestionsJoin The DiscordBugs & Feature RequestsTerms & Privacy