kerem
kerem
DIAdiscord.js - Imagine an app
Created by kerem on 3/16/2024 in #djs-questions
Couldn't resolve the user id to unban
have a great day
22 replies
DIAdiscord.js - Imagine an app
Created by kerem on 3/16/2024 in #djs-questions
Couldn't resolve the user id to unban
thanks for help i fixed
22 replies
DIAdiscord.js - Imagine an app
Created by kerem on 3/16/2024 in #djs-questions
Couldn't resolve the user id to unban
honestly it wouldn't be a lie if i said i was confused. can you show me what i need to change?
const banList = await interaction.guild.bans.fetch();
const bannedUser = banList.find((user) => user.user.id === userId);

if (!bannedUser) {
return interaction.reply("This user is not banned.");
}
await interaction.guild.members.unban(userId);
const embed = new EmbedBuilder()
.setColor("Aqua")
.setTitle("User Unbanned")
.setDescription(`Successfully unbanned <@${userId}>`);
await interaction.reply({ embeds: [embed] });
const banList = await interaction.guild.bans.fetch();
const bannedUser = banList.find((user) => user.user.id === userId);

if (!bannedUser) {
return interaction.reply("This user is not banned.");
}
await interaction.guild.members.unban(userId);
const embed = new EmbedBuilder()
.setColor("Aqua")
.setTitle("User Unbanned")
.setDescription(`Successfully unbanned <@${userId}>`);
await interaction.reply({ embeds: [embed] });
22 replies
DIAdiscord.js - Imagine an app
Created by kerem on 3/16/2024 in #djs-questions
Couldn't resolve the user id to unban
no error msg again
22 replies
DIAdiscord.js - Imagine an app
Created by kerem on 3/16/2024 in #djs-questions
Couldn't resolve the user id to unban
I wrote the command again and now it says "the user is not banned" and it did not unban
22 replies
DIAdiscord.js - Imagine an app
Created by kerem on 3/16/2024 in #djs-questions
Couldn't resolve the user id to unban
no error message
22 replies
DIAdiscord.js - Imagine an app
Created by kerem on 3/16/2024 in #djs-questions
Couldn't resolve the user id to unban
I was able to write the ID but the application did not respond
22 replies
DIAdiscord.js - Imagine an app
Created by kerem on 3/16/2024 in #djs-questions
Couldn't resolve the user id to unban
Oh wait
22 replies
DIAdiscord.js - Imagine an app
Created by kerem on 3/16/2024 in #djs-questions
Couldn't resolve the user id to unban
i already deployed commands
22 replies
DIAdiscord.js - Imagine an app
Created by kerem on 3/16/2024 in #djs-questions
Couldn't resolve the user id to unban
No description
22 replies
DIAdiscord.js - Imagine an app
Created by kerem on 3/16/2024 in #djs-questions
Couldn't resolve the user id to unban
If I get an error again i will write back
22 replies
DIAdiscord.js - Imagine an app
Created by kerem on 3/16/2024 in #djs-questions
Couldn't resolve the user id to unban
lemme try
22 replies
DIAdiscord.js - Imagine an app
Created by kerem on 3/16/2024 in #djs-questions
Couldn't resolve the user id to unban
the person is not on the server, so we cannot find that person on userOption. Am I wrong?
22 replies