Skip to content

Commit

Permalink
fix: add hexil role to user
Browse files Browse the repository at this point in the history
  • Loading branch information
Fyko committed Aug 17, 2023
1 parent aadf737 commit 7158004
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions chuckle-interactions/src/commands/hexil.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ pub async fn hexil(
)
.execute(&ctx.data.db)
.await?;

// add role to user
ctx.http_client()
.add_guild_member_role(guild_id, user.id, role.id)
.await?;
}

text_response(
Expand Down

0 comments on commit 7158004

Please sign in to comment.