WhacK - I upgraded my existing sapphire bot to typ...

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.
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"
},}
{"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
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": ""
}
}
{
"projectLanguage": "ts",
"locations": {
"base": "src",
"arguments": "arguments",
"commands": "modules",
"listeners": "listeners",
"preconditions": "preconditions"
},
"customFileTemplates": {
"enabled": false,
"location": ""
}
}
S
Sawako529d ago
Is commands folder no modules
W
WhacK529d ago
Yeah it says it loads 0 commands And doesn’t respond
S
Sawako529d ago
READ again
W
WhacK529d ago
So it cannot be renamed? The cli and docs make it seem like you can use a custom location if you set it.
S
Sawako529d ago
cli is not the framework and to change that route is a separate concept about stores in the framework
W
WhacK529d ago
ok thank you for your help!
Want results from more Discord servers?
Add your server
More Posts
Ararou - Is this smth fixable? It's never done thi...Is this smth fixable? It's never done this before and I don't know whats causing it.Fractune - Hello, I'd like to know why my `if` jum...Hello, I'd like to know why my `if` jumps straight to `else` while `!isNaN(parseInt(tags.slice(-1)[0Abdo Hosnie - it doesn't play anything (it doesn't play anything : (DelxHQ - Is there anyway I can defer all of my com...Is there anyway I can defer all of my commands?ShirayukiHaruka - **[Sapphire Logging]**Hello! I'...**[Sapphire Logging]** Hello! I've been using Sapphire for a while now, and wondering if there is a Ben855 - I can't seem to get slash subcommands wor...I can't seem to get slash subcommands working. I'm able to register them just fine but my chatInputRStealth - Any idea what's going on here?Any idea what's going on here?RVX - new to coding here. (very new) how do i un...new to coding here. (very new) how do i unregister a command? looks like registering a command an! 𝑱𝒂𝒎𝒆𝒔__ - Hello, I need help with my backup cod...Hello, I need help with my backup code. The rooms are created correctly but the categories are creatBigBrainAFK - So how does one interact with Forum ...So how does one interact with Forum channels in sapphireSlinky - Hello, I just started using the framework...Hello, I just started using the framework yesterday and currently having a issue trying to reset theHyperfire - How would i ago about adding custom fi...How would i ago about adding custom fields to commands? Like for example aliasespochiko - Hello! does anyone kno whow to fix this ...Hello! does anyone kno whow to fix this problem? ive been trying to figure out why for the past 30 mNitsua - Editing a previously ran slash command re...Editing a previously ran slash command results in an error. ``` Encountered error on chat input comwilluhmjs - ```jsValidationError s.string Exp...```js ValidationError > s.string Expected a string primitive Received: | undefined at Stsam - ```srcconfig.ts737 - error TS2345 Argum...``` src/config.ts:7:37 - error TS2345: Argument of type 'string' is not assignable to parameter of tRhys - ^Sort of related to above, does inheritance...^Sort of related to above, does inheritance work with commands? I've got a few commands for openinThatGuyJamal - Is it possible to make a default va...Is it possible to make a default value for registering command meta data. Like: ``` guildIds: isCanaUser - ```javascriptconst { Client, Events, Gate...```javascript const { Client, Events, GatewayIntentBits } = require('discord.js'); const client Ben855 - For autocomplete arguments in slash comma...For autocomplete arguments in slash commands, if the user enters something that wasn't available in