RRS Bunker
DIAdiscord.js - Imagine an app
•Created by CoolName | Exam on 6/19/2023 in #djs-questions
Get multiple user
oh. thx for telling me
38 replies
DIAdiscord.js - Imagine an app
•Created by CoolName | Exam on 6/19/2023 in #djs-questions
Get multiple user
@crow1000
38 replies
DIAdiscord.js - Imagine an app
•Created by CoolName | Exam on 6/19/2023 in #djs-questions
Get multiple user
const mentionSize = message.mention.user.size;
if (mentionSize < 1) return;
//process the mention ids here
38 replies
DIAdiscord.js - Imagine an app
•Created by Erffy on 6/21/2023 in #djs-questions
discordjs managers
the same reason why I learn js to code my bot XD
10 replies
DIAdiscord.js - Imagine an app
•Created by CoolName | Exam on 6/19/2023 in #djs-questions
Get multiple user
Basically, just use message.mention.user.size to check how many mention is available in a message
38 replies
DIAdiscord.js - Imagine an app
•Created by CoolName | Exam on 6/19/2023 in #djs-questions
Get multiple user
ignore the console log-
38 replies
DIAdiscord.js - Imagine an app
•Created by CoolName | Exam on 6/19/2023 in #djs-questions
Get multiple user
38 replies
DIAdiscord.js - Imagine an app
•Created by CoolName | Exam on 6/19/2023 in #djs-questions
Get multiple user
also. it might be hard to see things, but I use different capitalizations for my channel variables and constant
38 replies
DIAdiscord.js - Imagine an app
•Created by CoolName | Exam on 6/19/2023 in #djs-questions
Get multiple user
maybe by implementing the same method (and use mentions instead of channel ID), you can do the same
38 replies
DIAdiscord.js - Imagine an app
•Created by CoolName | Exam on 6/19/2023 in #djs-questions
Get multiple user
Here's what i do to ignote imput from a set of channel (through their id):
38 replies
DIAdiscord.js - Imagine an app
•Created by CoolName | Exam on 6/19/2023 in #djs-questions
Get multiple user
alr so basically, you can get the mentions from what gwapes uwu said.
and then for the loop part, its not quite like a loop. but the general idea is to check if the user id that replied matches any of the saved ids.
38 replies
DIAdiscord.js - Imagine an app
•Created by CoolName | Exam on 6/19/2023 in #djs-questions
Get multiple user
Good luck!
38 replies
DIAdiscord.js - Imagine an app
•Created by CoolName | Exam on 6/19/2023 in #djs-questions
Get multiple user
(I'm roasting myself btw*)
38 replies
DIAdiscord.js - Imagine an app
•Created by CoolName | Exam on 6/19/2023 in #djs-questions
Get multiple user
Or if you're an expert in the shortcuts and not a slow poke who need to understand how the process works, you can do that too
38 replies
DIAdiscord.js - Imagine an app
•Created by CoolName | Exam on 6/19/2023 in #djs-questions
Get multiple user
Seeing this, I should make a bot to make my server helping and guiding much easier :D
38 replies
DIAdiscord.js - Imagine an app
•Created by CoolName | Exam on 6/19/2023 in #djs-questions
Get multiple user
I'm not on my PC rn, but I can try to describe it.
So first, use message.trim().split(/ /g) to turn received messages into array.
Then you can use a loop/for and search each of the array and find every array index that has "<@" in it. Make sure to .slice(2) and .slice(-1) to get the user id only
And then, filter out interaction from all user.
Just do something like
if (interaction.userID != [check each of the user id])
{ (either do return; or tell the user it's not for them, and then return;)}
38 replies
DIAdiscord.js - Imagine an app
•Created by CoolName | Exam on 6/19/2023 in #djs-questions
Get multiple user
you can get all the pinged user id and save it in an array.
and when someone is tyring to interact with the cmd, you can make the bot accepts inputs only from the ids that you collected and placed in the array
38 replies
DIAdiscord.js - Imagine an app
•Created by CrashEng on 6/20/2023 in #djs-questions
cant get slash command to handle
10 replies
DIAdiscord.js - Imagine an app
•Created by CrashEng on 6/20/2023 in #djs-questions
cant get slash command to handle
if I wasnt wrong, you have to copy paste the deplpy-commands.js from the official website, and run node deploy-commands.js in your terminal
10 replies
DIAdiscord.js - Imagine an app
•Created by CrashEng on 6/20/2023 in #djs-questions
cant get slash command to handle
deploy-commands.js isnt it
10 replies