Ferklen
DIAdiscord.js - Imagine an app
•Created by Ferklen on 9/10/2023 in #djs-questions
add role
hi so ive been trying a lot to make this work but it just wont
im updating my code from v12.3.1 to 14.13.0 and im trying to update this code but there are 3 errors
first one, on the first // there is an error with the 'has'
second one, on the second //there is an error with 'highest'
and finally, on user.roles.add(role) there is always the error 'cannot read properties of undefined reading 'add''
and all of the console.log give me a real role and a real member, also im testing on a test server so i have perms, the bot has perms, the user is below the bot, the role is below the bot role
idk what to do
17 replies
DIAdiscord.js - Imagine an app
•Created by Ferklen on 9/7/2023 in #djs-questions
bot perms
anyone knows why is this not working?
i don't have a handler, its on the start of the code right above the commands
i have this in client "PermissionsBitField"
and other regular perms in commands work, for example
this works, and thats why i can't understand why the first line isn't working, they are in the same file and everything
the exact error is
TypeError: Cannot read properties of undefined (reading 'permissions')
12 replies
DIAdiscord.js - Imagine an app
•Created by Ferklen on 9/3/2023 in #djs-questions
channel filter
so im updating to v14.13.0 and im having problem with the serverinfo command
i had this
and it worked, but now that i updated i made this
and everything gives me '0' but
the total channel count works, its the channel filters that aint working
6 replies
DIAdiscord.js - Imagine an app
•Created by Ferklen on 8/29/2023 in #djs-questions
timeout perms
im trying to make a timeout command but idk what perms are required
if (!message.member.permissions.has('TIMEOUT_MEMBERS'))
doesn't exist, as i made a role with the permission to timeout members, then i used roleinfo and it says the role has no perms like if it didn't exist
8 replies