Pooyan
DIAdiscord.js - Imagine an app
•Created by Pooyan on 9/2/2023 in #djs-questions
Check if a user has Nitro or not
Is there anyway to check if a member/user has Nitro or no in discord.js@13/14 ?
9 replies
DIAdiscord.js - Imagine an app
•Created by Pooyan on 8/2/2023 in #djs-questions
Discord Invites
Hey, Can someone explain me how can I fetch invites (who invited the member & what is the invite code) in both [email protected] and [email protected] ?
4 replies
DIAdiscord.js - Imagine an app
•Created by Pooyan on 7/18/2023 in #djs-questions
Client only deploys 3-4 slash commands
Hey, I have 7 slash commands that I want to deploy but I can't (it only deploys 3 or 4).
Should I wait for client to deploy more or what?
18 replies
DIAdiscord.js - Imagine an app
•Created by Pooyan on 7/8/2023 in #djs-questions
TypeError: Cannot read properties of undefined (reading 'id')
Hey, I want to make a setlan command for my bot, when it sends the embed, it seems that the collector collects something itsself and the bot gives a "wtf" reply. Can anyone help me fix it?
DiscordJS version: 14.11.0
Code:
18 replies
DIAdiscord.js - Imagine an app
•Created by Pooyan on 4/13/2023 in #djs-questions
TypeError: Cannot read properties of undefined (reading 'status')
Why this code stopped working?
17 replies
DIAdiscord.js - Imagine an app
•Created by Pooyan on 4/9/2023 in #djs-questions
messageDelete events can't read "id" of the user(message author)
13 replies
DIAdiscord.js - Imagine an app
•Created by Pooyan on 4/1/2023 in #djs-questions
Why channel.type is not working for me without any errors
40 replies
DIAdiscord.js - Imagine an app
•Created by Pooyan on 2/26/2023 in #djs-questions
data.limitSpotify -= 1 substracts 2 instead of 1 (MongoDB)
Hey, When I want to limit the user so he can only use a command 10 times, the bot substracts 2 of the user's limits, instead of 1.
3 replies
DIAdiscord.js - Imagine an app
•Created by Pooyan on 2/20/2023 in #djs-questions
How can I make slash command NSFW?
I used
.setNSFW
but It didn't work3 replies
DIAdiscord.js - Imagine an app
•Created by Pooyan on 1/26/2023 in #djs-questions
<function> is not a function
Hey, I have a function out of anything, at top of my code named ticket.
It works anywhere else but does not work in a specific line of code.
Idk why, but it declares it a parameter instead of a function!
+ node.js 16
+ discord.js v13.12.0
+ using mongodb
14 replies
DIAdiscord.js - Imagine an app
•Created by Pooyan on 1/22/2023 in #djs-questions
How to add choice to slash command?
Hey, I want to add choices to the option named "section", But I don't know how.
Can you guide me?
30 replies
DIAdiscord.js - Imagine an app
•Created by Pooyan on 12/14/2022 in #djs-questions
No duplicate tickets in discord.js
I want to make my bot to not create another ticket if there is an open ticket by the user requesting this action.
19 replies
DIAdiscord.js - Imagine an app
•Created by Pooyan on 10/26/2022 in #djs-questions
Slash commands being duplicated in global registering
Hey, When I try to register my slash commands globally, they are getting duplicated.
Here is the code I am using:
I am using discord.js v13.8.0 and node.js v16
3 replies
DIAdiscord.js - Imagine an app
•Created by Pooyan on 10/26/2022 in #djs-questions
Slashcommands disappearing after a few minutes
Hey, A few minutes late from when I register slash commands, they disappear and just 2 will remain. What's the problem? [email protected] and node.js 16
2 replies
DIAdiscord.js - Imagine an app
•Created by Pooyan on 10/2/2022 in #djs-questions
Error registering slash commands discord.js v13
Hey, I am registering my slash commands and I am getting an error several times! and I don't even know what file it is for!
52 replies
DIAdiscord.js - Imagine an app
•Created by Pooyan on 9/29/2022 in #djs-questions
Cannot register slash commands discord.js v13
Every time I start registering my application commands, I get this error:
And they are not registered after a few minutes.
Notes: discord.js v13.8.0 node.js v16
4 replies
DIAdiscord.js - Imagine an app
•Created by Pooyan on 9/29/2022 in #djs-questions
Error registering a command
I was registering slash commands and I ran to an error:
0[DICT_TYPE_CONVERT]: Only dictionaries may be used in a DictType
at SequentialHandler.runRequest (C:\Users\Pooyan\Desktop\PDM Bot\node_modules\@discordjs\rest\dist\index.js:708:15)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async SequentialHandler.queueRequest (C:\Users\Pooyan\Desktop\PDM Bot\node_modules\@discordjs\rest\dist\index.js:511:14) {
rawError: {
code: 50035,
errors: { '0': [Object] },
message: 'Invalid Form Body'
},
code: 50035,
status: 400,
method: 'put',
url: 'https://discord.com/api/v9/applications/966666309909770260/guilds/966987181069598731/commands',
requestBody: { files: undefined, json: [ [Array] ] }
} Promise {
<rejected> DiscordAPIError[50035]: Invalid Form Body
0[DICT_TYPE_CONVERT]: Only dictionaries may be used in a DictType
at SequentialHandler.runRequest (C:\Users\Pooyan\Desktop\PDM Bot\node_modules\@discordjs\rest\dist\index.js:708:15)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async SequentialHandler.queueRequest (C:\Users\Pooyan\Desktop\PDM Bot\node_modules\@discordjs\rest\dist\index.js:511:14) {
rawError: { code: 50035, errors: [Object], message: 'Invalid Form Body' },
code: 50035,
status: 400,
method: 'put',
url: 'https://discord.com/api/v9/applications/966666309909770260/guilds/966987181069598731/commands',
requestBody: { files: undefined, json: [Array] }
}
}
Notes: discord.js v13.8.0 and node.js v1610 replies
DIAdiscord.js - Imagine an app
•Created by Pooyan on 9/29/2022 in #djs-questions
Discord.js v13 Slash commands are duplicated
Hello , I was registering slash commands but I ran into an error:
24[APPLICATION_COMMANDS_DUPLICATE_NAME]: Application command names must be unique
I checked the specified guild and I saw that the commands are duplicated. Why?
Code:
Notes: Using discord.js v13.8.0 node.js v1615 replies
DIAdiscord.js - Imagine an app
•Created by Pooyan on 9/27/2022 in #djs-questions
Discord.js v13 Slash command's option depends on the option
Is this possible?
Example: /command choice1 choice2
If I select "A" in choice1 I get "One" and "Two" as choices in choice. But when I select "B" in choice1, I will get "Three" and "Four" as choice2 options.
23 replies
DIAdiscord.js - Imagine an app
•Created by Pooyan on 9/26/2022 in #djs-questions
Max number of daily application command creates has been reached (200)
Hello, I have 12 slash commands on my bot, and I suddenly got an error:
Max number of daily application command creates has been reached (200)
. I have never gotten this error. Can anyone fix this?3 replies