Color "fix"

This commit is contained in:
Hri7566 2024-03-08 21:04:56 -05:00
parent 181b0403c7
commit 34cec1e033
1 changed files with 7 additions and 4 deletions

View File

@ -159,17 +159,20 @@ export class DiscordBot extends EventEmitter {
const role = await this.server.roles.create({
name: member.id,
color: parseInt(msg.color.substring(1), 16)
color: msg.color
});
await member.roles.add(role);
return;
} catch (err) {
this.logger.warn(
"Unable to create and set color for user ID:",
msg.id
);
return;
}
} else {
await existingRole.setColor(msg.color);
}
await existingRole.setColor(parseInt(msg.color.substring(1), 16));
});
this.b.on("sendchat", msg => {