named colours, better output for register and name command

This commit is contained in:
2024-12-08 22:53:32 -05:00
parent 0def108010
commit 3b8556e353
3 changed files with 39 additions and 15 deletions

View File

@@ -13,6 +13,7 @@ pub async fn register(ctx: Context<'_>, user: serenity::User, role: serenity::Ro
if let Some(guild) = ctx.guild_id() {
match super::get_user_role(user.id, guild, db).await? {
Some(role) => {
let role = guild.role(ctx, role).await?;
common::no_ping_reply(&ctx, format!("{} already has the role {} registered.", user, role)).await?;
Ok(())
},