Rough Rider-L 94
Rough Rider-L 94
DIAdiscord.js - Imagine an app
Created by Rough Rider-L 94 on 11/8/2023 in #djs-questions
obj.forEach() does not work
well, i'll now look into the buttons & select menus @wolvinny 🌈 many thanks for the suggestion & discussion
29 replies
DIAdiscord.js - Imagine an app
Created by Rough Rider-L 94 on 11/8/2023 in #djs-questions
obj.forEach() does not work
tbh ... i haven't seen much on buttons & select menus reactions are the main interaction w/ msg's that i've seen so my why, is because, up until you mentioned it just now, i had no clue about them or that I should even look into using them
29 replies
DIAdiscord.js - Imagine an app
Created by Rough Rider-L 94 on 11/8/2023 in #djs-questions
obj.forEach() does not work
ain't that the God's honest truth right there
29 replies
DIAdiscord.js - Imagine an app
Created by Rough Rider-L 94 on 11/8/2023 in #djs-questions
obj.forEach() does not work
those are beyond my current paygrade ... lol
29 replies
DIAdiscord.js - Imagine an app
Created by Rough Rider-L 94 on 11/8/2023 in #djs-questions
obj.forEach() does not work
@Pulse ... thanks for the suggested solution ... but many more thanks for the discussion !!!
29 replies
DIAdiscord.js - Imagine an app
Created by Rough Rider-L 94 on 11/8/2023 in #djs-questions
obj.forEach() does not work
ok ... but in order to toggle the reactions & restrict the user's selection to only 1 reaction ... ie. for a vote or poll ... i'm going to have to avoid partials since i don't necessarily want/need the msgReactAdd/Remove events to fire for every uncached msg ... yes/no ? how else to isolate & restrict the event trigger to occur only on certain msg's ... except for maintaining a list of chan/msg id's ?
29 replies
DIAdiscord.js - Imagine an app
Created by Rough Rider-L 94 on 11/8/2023 in #djs-questions
obj.forEach() does not work
... & yes, i'm trying to get away from the static coding & make it a dynamic handler to initialize all the stuff
29 replies
DIAdiscord.js - Imagine an app
Created by Rough Rider-L 94 on 11/8/2023 in #djs-questions
obj.forEach() does not work
sweet ... last q ... so then the calling syntax would remain the same ... obj[key][next key][& so on] ... ?
29 replies
DIAdiscord.js - Imagine an app
Created by Rough Rider-L 94 on 11/8/2023 in #djs-questions
obj.forEach() does not work
... ie. to get the chanID ... Initializations[rules][chanId]
29 replies
DIAdiscord.js - Imagine an app
Created by Rough Rider-L 94 on 11/8/2023 in #djs-questions
obj.forEach() does not work
... and the ... Initializations.forEach() ... should then work too?
29 replies
DIAdiscord.js - Imagine an app
Created by Rough Rider-L 94 on 11/8/2023 in #djs-questions
obj.forEach() does not work
so convert to ... Initializations: [ stuff ] ... then call w/ ... Initializations[rules] ... like normal for specific items ?
29 replies
DIAdiscord.js - Imagine an app
Created by Rough Rider-L 94 on 11/8/2023 in #djs-questions
obj.forEach() does not work
so ... Initializations.cache ... is probably wrong too ?
29 replies
DIAdiscord.js - Imagine an app
Created by Rough Rider-L 94 on 11/8/2023 in #djs-questions
obj.forEach() does not work
ahh ... i suspect i had an old or bad example ... Partials should be declared in the ... const {Client, Partials, other stuff...} = require('discord.js;)' then my ... partials: [list here] ... is probably the wrong syntax too
29 replies
DIAdiscord.js - Imagine an app
Created by Rough Rider-L 94 on 11/8/2023 in #djs-questions
obj.forEach() does not work
No description
29 replies
DIAdiscord.js - Imagine an app
Created by Rough Rider-L 94 on 11/8/2023 in #djs-questions
obj.forEach() does not work
config.json ... { "token" : "nope", "clientId" : "another nope", "guildId" : "another nope", "bots" : ["list of bot names here"], "AdminRoles" : ["Admin", "Mods", "Server Mgrs", "other admin roles ..."], "UserRoles" : ["New Users", "user_role_1", "user_role_2", "user_role_3"], "Initializations" : { "rules" : { "chanId" : "rules chan id goes here", "msgId" : "its msg id goes here" }, "roles" : { "chanId" : "roles chan id goes here", "msgId" : "its msg id goes here" }, "polls" : { "poll_1" : { "chanId" : "poll_1 chan id goes here", "msgs" : [ "1st msg id goes here", "other msg id's after this", "etc" ] } } } }
29 replies
DIAdiscord.js - Imagine an app
Created by Rough Rider-L 94 on 11/8/2023 in #djs-questions
obj.forEach() does not work
No description
29 replies