Alex Kuma
Alex Kuma
DIAdiscord.js - Imagine an app
Created by Alex Kuma on 8/9/2023 in #djs-questions
Best way to update bot
Can i upgrade my bot directly from a v12 bot to a v14 - or would it be recommended to go v13>v14
5 replies
DIAdiscord.js - Imagine an app
Created by Alex Kuma on 8/7/2023 in #djs-questions
How to upgrade
Can i go straight from a v12 update to v14?
8 replies
DIAdiscord.js - Imagine an app
Created by Alex Kuma on 12/4/2022 in #djs-questions
Trying to ban and unban a user directly after each other
msg.mentions.members.first().unban(msg.mentions.members.id)
^

TypeError: msg.mentions.members.first(...).unban is not a function
msg.mentions.members.first().unban(msg.mentions.members.id)
^

TypeError: msg.mentions.members.first(...).unban is not a function
Here is the error im getting, and here is the code:
msg.mentions.members.first().ban().then(
msg.mentions.members.first().unban(msg.mentions.members.id)
)
msg.mentions.members.first().ban().then(
msg.mentions.members.first().unban(msg.mentions.members.id)
)
13 replies
DIAdiscord.js - Imagine an app
Created by Alex Kuma on 9/27/2022 in #djs-questions
How do i get all the roles that one member has?
I tried
console.log(msg.member.roles)
console.log(msg.member.roles)
But it doesn't work and ive tried variations but i am confused
8 replies