officialdatch
officialdatch
DIAdiscord.js - Imagine an app
Created by officialdatch on 5/5/2024 in #djs-questions
DiscordAPIError[50027]: Invalid Webhook Token
No description
4 replies
DIAdiscord.js - Imagine an app
Created by officialdatch on 5/5/2024 in #djs-questions
DiscordAPIError[50027]: Invalid Webhook Token
I will give the line of code in a sec.
4 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
@Becel It worked, tysm
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
Thanks for the explanation, I'll check if this works and I'll get back to you.
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
Ok, thanks I'll try.
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
No description
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
I tried couple of solutions, but none of them works.
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
No description
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
17 replies
DIAdiscord.js - Imagine an app
Created by officialdatch on 5/1/2024 in #djs-voice
How to check if a user is in a specific guild
The highlighted script is the script that I want to check if the user is in a specific guild
4 replies
DIAdiscord.js - Imagine an app
Created by officialdatch on 5/1/2024 in #djs-voice
How to check if a user is in a specific guild
const user = interaction.options.getMember('user'); const club = interaction.options.getRole('club'); const position = interaction.options.getString('position'); const guild = await interaction.client.guilds.fetch('1231641406083301458'); const mainguild = await interaction.client.guilds.fetch('1232018031736000613'); const member = await interaction.guild.members.fetch(user.id); const mainmember = await mainguild.members.fetch(user.id); const guildMember = await guild.members.cache.get(user.id);
try { const guild = await interaction.client.guilds.fetch('1231641406083301458');
if (!member) { const nothere = new EmbedBuilder() .setColor('#fc0317') .setDescription('User not found.') await interaction.reply({embeds: [nothere], ephemeral: true }) } else if (!guild) { const noguild = new EmbedBuilder() .setColor('#fc0317') .setDescription('Guild not found.') await interaction.reply({embeds: [noguild], ephemeral: true }) }
else if (member.guild.id === guild.id) { const nothere = new EmbedBuilder() .setColor('#fc0317') .setDescription('User not found on the IFF server.') await interaction.reply({embeds: [nothere], ephemeral: true }) } else if (interaction.member === user) { const nothere = new EmbedBuilder() .setColor('#fc0317') .setDescription(You can't add yourself to the club!) await interaction.reply({embeds: [nothere], ephemeral: true }) }
4 replies
DIAdiscord.js - Imagine an app
Created by officialdatch on 4/30/2024 in #djs-questions
Problem to add a role to a person in a different guild
I tried couple of times to fix it, but I don't know how.
3 replies
DIAdiscord.js - Imagine an app
Created by officialdatch on 4/29/2024 in #djs-questions
Button Collector
I’ll do it right now
15 replies
DIAdiscord.js - Imagine an app
Created by officialdatch on 4/29/2024 in #djs-questions
Button Collector
Oh, that makes sense
15 replies
DIAdiscord.js - Imagine an app
Created by officialdatch on 4/29/2024 in #djs-questions
Button Collector
How can you can state in the code that if the person clicked on the button was invited in the useroption (‘user‘)?
15 replies
DIAdiscord.js - Imagine an app
Created by officialdatch on 4/29/2024 in #djs-questions
Button Collector
No description
15 replies
DIAdiscord.js - Imagine an app
Created by officialdatch on 4/29/2024 in #djs-questions
Button Collector
I am trying to do do something, but with no result.
15 replies
DIAdiscord.js - Imagine an app
Created by officialdatch on 4/29/2024 in #djs-questions
Button Collector
How can I do that if a user from the RoleOption 'user' reacted, it does what I write?
15 replies
DIAdiscord.js - Imagine an app
Created by officialdatch on 4/29/2024 in #djs-questions
Button Collector
I'm sorry in that case, I'm new and I don't know where to start so that's why i asked 🙂
15 replies
DIAdiscord.js - Imagine an app
Created by officialdatch on 4/29/2024 in #djs-questions
Button Collector
Oh, thanks. I didn't see that.
15 replies