Property 'description' does not exist on type 'ApplicationCommandData'.

Hi yall, so I have this code here (https://sourceb.in/1t4I7PyZPo) but keep getting an error saying that description does not exist on ApplicationCommandData (line 5). Logging cmd gets me something along the lines of
{
[1] dir: 'Staff',
[1] data: {
[1] name: 'remove-blacklist',
[1] description: 'removes a blacklist from a server/user',
[1] type: 1,
[1] options: [ [Object], [Object] ]
[1] },
[1] memberPerms: [],
[1] botreqperms: [],
[1] cooldown: 0,
[1] voteCooldown: 0,
[1] voteOnly: false,
[1] staffOnly: false,
[1] ownerOnly: true,
[1] execute: [Function: execute]
[1] }
{
[1] dir: 'Staff',
[1] data: {
[1] name: 'remove-blacklist',
[1] description: 'removes a blacklist from a server/user',
[1] type: 1,
[1] options: [ [Object], [Object] ]
[1] },
[1] memberPerms: [],
[1] botreqperms: [],
[1] cooldown: 0,
[1] voteCooldown: 0,
[1] voteOnly: false,
[1] staffOnly: false,
[1] ownerOnly: true,
[1] execute: [Function: execute]
[1] }
So im not quite sure as to what the issue is, anybody mind helping out?
5 Replies
d.js toolkit
d.js toolkit12mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Post the full error stack trace, not just the top part! - Show your code! - Explain what exactly your issue is. - Not a discord.js issue? Check out #useful-servers. - Issue solved? Press the button!
duck
duck12mo ago
are you receiving this error at compile time or just from your ide?
Mr. Panda
Mr. Panda12mo ago
from my IDE
duck
duck12mo ago
if you don't receive this at compile time, then it's simply an IDE issue possibly solved by restarting your ts server but regardless, not something to be fixed in your code, especially since ApplicationCommandData does have the property description
Mr. Panda
Mr. Panda12mo ago
ok great, im not going crazy thanks!