Nahana
DIAdiscord.js - Imagine an app
•Created by Nahana on 1/1/2024 in #djs-questions
Get user by ID via DM Slash command
perfect ... I always forget you can get client from interaction
9 replies
DIAdiscord.js - Imagine an app
•Created by Nahana on 1/1/2024 in #djs-questions
Get user by ID via DM Slash command
User A -> DMs bot with the /ask command -> Bot pull the info from the database, which is User Bs userID ... -> Bot sending DM to User B
9 replies
DIAdiscord.js - Imagine an app
•Created by Nahana on 1/1/2024 in #djs-questions
Get user by ID via DM Slash command
<Client> in this instance would be the interaction correct? This has the user Object, but its the user who ran the interaction ... Im probably missing something tho
9 replies
DIAdiscord.js - Imagine an app
•Created by Nahana on 1/1/2024 in #djs-questions
Get user by ID via DM Slash command
^14.13.0
node 18.17.0
9 replies
DIAdiscord.js - Imagine an app
•Created by Nahana on 12/31/2022 in #djs-questions
How do I get the current guild id in a client ready event?
thanks!
11 replies
DIAdiscord.js - Imagine an app
•Created by Nahana on 12/31/2022 in #djs-questions
How do I get the current guild id in a client ready event?
then pull it for each Event
11 replies
DIAdiscord.js - Imagine an app
•Created by Nahana on 12/31/2022 in #djs-questions
How do I get the current guild id in a client ready event?
that's what I was thinking was the issue. So ill have to do it when the guild is created, ie bot joins
11 replies
DIAdiscord.js - Imagine an app
•Created by Nahana on 12/31/2022 in #djs-questions
How do I get the current guild id in a client ready event?
that way when someone does say /setlogchannel .. it could pull that guild ID to update that row in teh db
11 replies
DIAdiscord.js - Imagine an app
•Created by Nahana on 12/31/2022 in #djs-questions
How do I get the current guild id in a client ready event?
would be each guild, but the current guild that's "running"
my plan is use the guild id to store server configs (log channel, bot role level, etc) and was getting the guild ID in ready to do a check if the record was in the db yet, if not create it
11 replies
DIAdiscord.js - Imagine an app
•Created by Nahana on 12/31/2022 in #djs-questions
How do I get the current guild id in a client ready event?
discordjs 14.7.1
node 16.14.0
11 replies