Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit

Permalink
fix role searching bug
Browse files Browse the repository at this point in the history
  • Loading branch information
waitwhatActo committed Aug 23, 2023
1 parent 04a1c1a commit 39c7056
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/color.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module.exports = {
.setAuthor({ name: interaction.user.tag, iconURL: interaction.user.displayAvatarURL() })
.setFooter({ text: "DBT Utils da best", iconURL: bot.user.displayAvatarURL() });
let givenrole;
if (interaction.guild.roles.cache.has(role => role.name == interaction.member.id)) {
if (await interaction.guild.roles.cache.find(role => role.name == interaction.member.id)) {
await interaction.guild.roles.cache.find(role => role.name == interaction.member.id).setColor(color);
}
else {
Expand Down

0 comments on commit 39c7056

Please sign in to comment.