b3ssel
b3ssel
DIAdiscord.js - Imagine an app
Created by .kinsuk on 6/22/2024 in #djs-questions
Unknown Integration
normally the Unknown Integration error should be fixed by: - Restarting your Discord - Restarting your bot - Removing the bot from your server, restart Discord and add your bot to your server again
33 replies
DIAdiscord.js - Imagine an app
Created by .kinsuk on 6/22/2024 in #djs-questions
Unknown Integration
then I have no clue what other cause it might be
33 replies
DIAdiscord.js - Imagine an app
Created by .kinsuk on 6/22/2024 in #djs-questions
Unknown Integration
Restart your discord app
33 replies
DIAdiscord.js - Imagine an app
Created by .kinsuk on 6/22/2024 in #djs-questions
Unknown Integration
No but its not an error on your code, its just that Discord doesn't know where the command needs to be send to
33 replies
DIAdiscord.js - Imagine an app
Created by .kinsuk on 6/22/2024 in #djs-questions
Unknown Integration
does it now say Application did not respond?
33 replies
DIAdiscord.js - Imagine an app
Created by .kinsuk on 6/22/2024 in #djs-questions
Unknown Integration
try to restart your Discord or remove your application from the server and add it again
33 replies
DIAdiscord.js - Imagine an app
Created by .kinsuk on 6/22/2024 in #djs-questions
Unknown Integration
You get the Unknown Integration error on Discord when Discord cannot find out which integration the slash command belongs to
33 replies
DIAdiscord.js - Imagine an app
Created by officialdatch on 5/1/2024 in #djs-questions
How to check if a user is in a specific guild
then the if (!userInGuild) statement is checking if userInGuild is null (meaning the user is not in the server) or is a GuildMember object (meaning the user is in the server)
17 replies
DIAdiscord.js - Imagine an app
Created by officialdatch on 5/1/2024 in #djs-questions
How to check if a user is in a specific guild
we need to catch that error and then return null, meaning that userInGuild is equal to null
17 replies
DIAdiscord.js - Imagine an app
Created by officialdatch on 5/1/2024 in #djs-questions
How to check if a user is in a specific guild
so what userInGuild does is trying to fetch the user id, but if its not there it returns an error
17 replies
DIAdiscord.js - Imagine an app
Created by officialdatch on 5/1/2024 in #djs-questions
How to check if a user is in a specific guild
Use this instead:
const userInGuild = await guild.members.fetch(user.id).catch(() => { return null });

if (!userInGuild) {
const nothere = new EmbedBuilder()
//...
};
const userInGuild = await guild.members.fetch(user.id).catch(() => { return null });

if (!userInGuild) {
const nothere = new EmbedBuilder()
//...
};
17 replies
DIAdiscord.js - Imagine an app
Created by officialdatch on 5/1/2024 in #djs-questions
How to check if a user is in a specific guild
If the given user ID is not on the server, you will get an error as return
17 replies
DIAdiscord.js - Imagine an app
Created by b3ssel on 12/7/2023 in #djs-questions
Fetching the audit logs not returning as wanted
I just misunderstood the docs a bit
19 replies
DIAdiscord.js - Imagine an app
Created by b3ssel on 12/7/2023 in #djs-questions
Fetching the audit logs not returning as wanted
well its working now, so thanks a lot for helping me out
19 replies
DIAdiscord.js - Imagine an app
Created by b3ssel on 12/7/2023 in #djs-questions
Fetching the audit logs not returning as wanted
ah now I know how snowflakes are working, didn't quite understand it
19 replies
DIAdiscord.js - Imagine an app
Created by b3ssel on 12/7/2023 in #djs-questions
Fetching the audit logs not returning as wanted
but let me try to do it like the SnowFlakeUtil then
19 replies
DIAdiscord.js - Imagine an app
Created by b3ssel on 12/7/2023 in #djs-questions
Fetching the audit logs not returning as wanted
that's why I was using it like this
19 replies
DIAdiscord.js - Imagine an app
Created by b3ssel on 12/7/2023 in #djs-questions
Fetching the audit logs not returning as wanted
No description
19 replies
DIAdiscord.js - Imagine an app
Created by b3ssel on 12/7/2023 in #djs-questions
Fetching the audit logs not returning as wanted
its literally telling me to do it like that
19 replies
DIAdiscord.js - Imagine an app
Created by b3ssel on 12/7/2023 in #djs-questions
Fetching the audit logs not returning as wanted
19 replies