can
can
DIAdiscord.js - Imagine an app
Created by dito on 7/30/2024 in #djs-questions
server boost event and boost revoke event
..
21 replies
DIAdiscord.js - Imagine an app
Created by dito on 7/30/2024 in #djs-questions
server boost event and boost revoke event
like when someone has 2 boost & cancels 1 boost, you cant detect, because the user will still have a role
21 replies
DIAdiscord.js - Imagine an app
Created by dito on 7/30/2024 in #djs-questions
server boost event and boost revoke event
but revoking is not detectable
21 replies
DIAdiscord.js - Imagine an app
Created by dito on 7/30/2024 in #djs-questions
server boost event and boost revoke event
yes detecting 0 boost -> 1 boost & 1 boost -> 0 boost is possible by checking roles
21 replies
DIAdiscord.js - Imagine an app
Created by dito on 7/30/2024 in #djs-questions
server boost event and boost revoke event
it is not possible to see when a user cancels their boost
21 replies
DIAdiscord.js - Imagine an app
Created by dito on 7/30/2024 in #djs-questions
server boost event and boost revoke event
then the snippet above should work for you
21 replies
DIAdiscord.js - Imagine an app
Created by dito on 7/30/2024 in #djs-questions
server boost event and boost revoke event
at least, Discord currently does not send an event to the bots when a user boosts a server or cancels a boost. I think this kind of approach is not a complete solution
21 replies
DIAdiscord.js - Imagine an app
Created by dito on 7/30/2024 in #djs-questions
server boost event and boost revoke event
this only works in a scenario where the user has not boosted before and is boosting for the first time it is not possible to see when a user cancels their boost or boost server (for example if the user is already boosting the server and boost again, this if will return false)
21 replies
DIAdiscord.js - Imagine an app
Created by kai 𓇢𓆸 on 7/20/2024 in #djs-questions
Cannot read properties of undefined (reading 'roles')
add "else" then
57 replies
DIAdiscord.js - Imagine an app
Created by kai 𓇢𓆸 on 7/20/2024 in #djs-questions
Cannot read properties of undefined (reading 'roles')
add return before interaction.reply and remove else that doing nothing
57 replies
DIAdiscord.js - Imagine an app
Created by kai 𓇢𓆸 on 7/20/2024 in #djs-questions
Cannot read properties of undefined (reading 'roles')
you know basic javascript right?
57 replies
DIAdiscord.js - Imagine an app
Created by kai 𓇢𓆸 on 7/20/2024 in #djs-questions
Cannot read properties of undefined (reading 'roles')
like this
57 replies
DIAdiscord.js - Imagine an app
Created by kai 𓇢𓆸 on 7/20/2024 in #djs-questions
Cannot read properties of undefined (reading 'roles')
if (interaction.guild.roles.comparePositions(interaction.member.roles.highest, role) <= 0) {
// return error
}
if (interaction.guild.roles.comparePositions(interaction.member.roles.highest, role) <= 0) {
// return error
}
57 replies
DIAdiscord.js - Imagine an app
Created by kai 𓇢𓆸 on 7/20/2024 in #djs-questions
Cannot read properties of undefined (reading 'roles')
use this
57 replies
DIAdiscord.js - Imagine an app
Created by ! ! anDro on 6/24/2024 in #djs-questions
channel permission change
typescript isnt that good
65 replies
DIAdiscord.js - Imagine an app
Created by A on 6/16/2024 in #djs-questions
Audit Log Executer
i think what he is trying to say is that even though audit logs are coming 5 seconds late to the server, a bot(?) instantly finds and take action against the user doing the action
14 replies
DIAdiscord.js - Imagine an app
Created by can on 5/31/2024 in #djs-questions
My bot cant create emoji even though it has create expressions permission
https://github.com/discord/discord-api-docs/issues/6543 I think it is a bug with the API. thanks for your help
4 replies
DIAdiscord.js - Imagine an app
Created by can on 5/31/2024 in #djs-questions
My bot cant create emoji even though it has create expressions permission
(I realize that in the first image it looks like there is no one with the role, its just cache issue)
4 replies