sexy dark chocolate
sexy dark chocolate
DIAdiscord.js - Imagine a bot
Created by Enterprise on 6/26/2023 in #djs-questions
not response without any error
If the logs dont work then the code (or that part of the code) doesnt run
13 replies
DIAdiscord.js - Imagine a bot
Created by Enterprise on 6/26/2023 in #djs-questions
not response without any error
well, at least that part of the code
13 replies
DIAdiscord.js - Imagine a bot
Created by Enterprise on 6/26/2023 in #djs-questions
not response without any error
The code doesn't run
13 replies
DIAdiscord.js - Imagine a bot
Created by JuanDelPueblo on 6/26/2023 in #djs-questions
Proper error handling with awaitMessages
O
12 replies
DIAdiscord.js - Imagine a bot
Created by JuanDelPueblo on 6/26/2023 in #djs-questions
Proper error handling with awaitMessages
Why does it exist?
12 replies
DIAdiscord.js - Imagine a bot
Created by JuanDelPueblo on 6/26/2023 in #djs-questions
Proper error handling with awaitMessages
Well, that's my thoughts on why it exists, someone can correct me if Im wrong
12 replies
DIAdiscord.js - Imagine a bot
Created by JuanDelPueblo on 6/26/2023 in #djs-questions
Proper error handling with awaitMessages
There we go, thats why the errors option exists. Incase you don't want the promise to reject for specific reasons or you wanrt it to reject for specific reasons. Like if you want it to error out if the channel was deleted but not if the time is up
12 replies
DIAdiscord.js - Imagine a bot
Created by JuanDelPueblo on 6/26/2023 in #djs-questions
Proper error handling with awaitMessages
Oh wait, I think they provided that for IF you'd like the promise to reject, meaning if you'd like it to reject because of time itll reject with the collection of collected messages if the max hasn't been reached within the specific amount of time, if you provide no errors itll jus resolve the collection after the alotted time
12 replies
DIAdiscord.js - Imagine a bot
Created by JuanDelPueblo on 6/26/2023 in #djs-questions
Proper error handling with awaitMessages
Yeah the awaitMessages rejects with the collection of collected messages if you provided any reasons in the errors array and the collector ended for that reason. Only reasons I know of that djs stops the collector with are time and messageDelete, but messageDelete pertains to component collectors. Not sure why there's really an errors array to provide your own reasons since its promisified but there must be a reason why
12 replies
DIAdiscord.js - Imagine a bot
Created by Enterprise on 6/26/2023 in #djs-questions
not response without any error
if you get the appilication havent respnded error then you never rplied to the interaction
13 replies
DIAdiscord.js - Imagine a bot
Created by Uzini on 6/24/2023 in #djs-questions
Get username not global username
You want to get the user's display name / Global name? Your title and what you're saying doesn't really add up
5 replies
DIAdiscord.js - Imagine a bot
Created by MrHanBrolo on 6/23/2023 in #djs-questions
Autocomplete failing to load choices
After you're done, try it and if it doesn't work, show me the code
40 replies
DIAdiscord.js - Imagine a bot
Created by MrHanBrolo on 6/23/2023 in #djs-questions
Autocomplete failing to load choices
It can be done in one listener but if you'd like you can create another just for autocomplete interactions
40 replies
DIAdiscord.js - Imagine a bot
Created by MrHanBrolo on 6/23/2023 in #djs-questions
Autocomplete failing to load choices
As seen in the lil snippet I shown above
40 replies
DIAdiscord.js - Imagine a bot
Created by MrHanBrolo on 6/23/2023 in #djs-questions
Autocomplete failing to load choices
Not event handler but rather an interaction handler, all you need to do is check the type of interaction recieved then move accordingly
40 replies
DIAdiscord.js - Imagine a bot
Created by MrHanBrolo on 6/23/2023 in #djs-questions
Autocomplete failing to load choices
Then just for testing, do this
if(interaction.isChatInputCommand()) {
// all the code you sent
} else if(interaction.isAutocomplete()) {
//Get the command from client.commands

//command.handleAutocomplete(yourParams)
}
if(interaction.isChatInputCommand()) {
// all the code you sent
} else if(interaction.isAutocomplete()) {
//Get the command from client.commands

//command.handleAutocomplete(yourParams)
}
40 replies
DIAdiscord.js - Imagine a bot
Created by MrHanBrolo on 6/23/2023 in #djs-questions
Autocomplete failing to load choices
2 different interactions
40 replies
DIAdiscord.js - Imagine a bot
Created by MrHanBrolo on 6/23/2023 in #djs-questions
Autocomplete failing to load choices
Autocomplete interactions come from a slash command yes but slash commands are chatinputcommand interactions whereas autocomplete options send autocomplete interactions
40 replies