25 Replies
Fabrizio Santana
Fabrizio SantanaOP16mo ago
No description
Favna
Favna16mo ago
Please share the full command code
Fabrizio Santana
Fabrizio SantanaOP16mo ago
No description
b1nzee
b1nzee16mo ago
Where do you have "This maze wasn't meant for you... What did you do." ? Maybe a precondition?
Fabrizio Santana
Fabrizio SantanaOP16mo ago
GitHub
utilities/packages/discord.js-utilities/src/lib/PaginatedMessages/P...
Common JavaScript utilities for Sapphire Projects. Contribute to sapphiredev/utilities development by creating an account on GitHub.
b1nzee
b1nzee16mo ago
Ah okay, never used the module / function xD kind of a weird message but I won't question it
Favna
Favna16mo ago
It's a bit of inside joke because it's what Discord themselves sends when a fatal error occurred.
b1nzee
b1nzee16mo ago
Oh wtf, never seen that before xD
Favna
Favna16mo ago
Anyway I'm on mobile now but do we not send that when someone other than who initiated the command presses a button? @b1nzee can you click one of these buttons?
Dragonite
Dragonite16mo ago
#494 - Victini
Type(s)
Psychic, Fire
Abilities
Victory Star
Gender Ratio
Genderless
Evolutionary line
Victini (No Evolutions)
Base Stats
HP: 100, ATK: 100, DEF: 100, SPA: 100, SPD: 100, SPE: 100 (BST: 600)
External Resources
1 / 4
Fabrizio Santana
Fabrizio SantanaOP16mo ago
No description
b1nzee
b1nzee16mo ago
Same
Favna
Favna16mo ago
Okay so no that was another thing I'll have to dig through the code when I'm back But I think it might be that you have a static method instead of just a class instance method Fabrizio
Fabrizio Santana
Fabrizio SantanaOP16mo ago
uh how do i check that?
Favna
Favna16mo ago
Also can you share your package.json?
Fabrizio Santana
Fabrizio SantanaOP16mo ago
yeah
Favna
Favna16mo ago
Change public static async sendForm to public async sendForm then call it with this.sendForm
Fabrizio Santana
Fabrizio SantanaOP16mo ago
{
"name": "luxanna-sapphire",
"version": "1.0.0",
"description": "",
"main": "dist/index.js",
"type": "module",
"imports": {
"#structures/*": "./dist/lib/structures/*.js",
"#utils/*": "./dist/lib/utils/*.js",
"#root/*": "./dist/*.js"
},
"scripts": {
"pm2": "pm2 start ecosystem.yml",
"start": "node --enable-source-maps .",
"format": "prettier --write \"{*,src/**/*}.{json,js,ts,css,html}\"",
"build": "tsup --config node_modules/@lioness100/configs/tsup.config.js --define.PROJECT_TYPE bot",
"dev": "npm run build && clear && npm run start"
},
"dependencies": {
"@sapphire/decorators": "^6.0.2",
"@sapphire/discord.js-utilities": "^7.0.1",
"@sapphire/framework": "^3.3.0-pr-512.de20326.0",
"@sapphire/plugin-hmr": "^2.0.1",
"@sapphire/plugin-i18next": "^5.0.4",
"@sapphire/time-utilities": "^1.7.10",
"@sapphire/utilities": "^3.13.0",
"colorette": "^2.0.20",
"discord.js": "^14.12.1",
"dotenv": "^16.3.1",
"envalid": "^7.3.1",
"tslog": "^3.3.4"
},
"optionalDependencies": {
"bufferutil": "^4.0.7",
"utf-8-validate": "^6.0.3",
"zlib-sync": "^0.1.8"
},
"devDependencies": {
"@types/node": "^20.4.5",
"prettier": "^2.8.8",
"tsup": "^7.1.0",
"typescript": "^5.1.6"
},
"engines": {
"node": ">=16.6"
}
}
{
"name": "luxanna-sapphire",
"version": "1.0.0",
"description": "",
"main": "dist/index.js",
"type": "module",
"imports": {
"#structures/*": "./dist/lib/structures/*.js",
"#utils/*": "./dist/lib/utils/*.js",
"#root/*": "./dist/*.js"
},
"scripts": {
"pm2": "pm2 start ecosystem.yml",
"start": "node --enable-source-maps .",
"format": "prettier --write \"{*,src/**/*}.{json,js,ts,css,html}\"",
"build": "tsup --config node_modules/@lioness100/configs/tsup.config.js --define.PROJECT_TYPE bot",
"dev": "npm run build && clear && npm run start"
},
"dependencies": {
"@sapphire/decorators": "^6.0.2",
"@sapphire/discord.js-utilities": "^7.0.1",
"@sapphire/framework": "^3.3.0-pr-512.de20326.0",
"@sapphire/plugin-hmr": "^2.0.1",
"@sapphire/plugin-i18next": "^5.0.4",
"@sapphire/time-utilities": "^1.7.10",
"@sapphire/utilities": "^3.13.0",
"colorette": "^2.0.20",
"discord.js": "^14.12.1",
"dotenv": "^16.3.1",
"envalid": "^7.3.1",
"tslog": "^3.3.4"
},
"optionalDependencies": {
"bufferutil": "^4.0.7",
"utf-8-validate": "^6.0.3",
"zlib-sync": "^0.1.8"
},
"devDependencies": {
"@types/node": "^20.4.5",
"prettier": "^2.8.8",
"tsup": "^7.1.0",
"typescript": "^5.1.6"
},
"engines": {
"node": ">=16.6"
}
}
Favna
Favna16mo ago
Wpaw Yeah uh Update your deps That's a very old version of sapphire We're on 4.x now
Fabrizio Santana
Fabrizio SantanaOP16mo ago
oh shit
Favna
Favna16mo ago
No wonder something fails
Fabrizio Santana
Fabrizio SantanaOP16mo ago
ty
b1nzee
b1nzee16mo ago
kekw
Fabrizio Santana
Fabrizio SantanaOP16mo ago
I hadn't thought about it xD
Favna
Favna16mo ago
I had a hunch. Some if statement is failing which causes the unexpected error flow which is that error Also it's not Command.Interaction anymore but Command.ChatInputInteraction from the top of my head which was a hint to me
Want results from more Discord servers?
Add your server