Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kozabrada123 committed Jan 23, 2025
1 parent 55c8092 commit 35913ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/members.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ async fn add_remove_role() -> ChorusResult<()> {
let guild = bundle.guild.read().unwrap().id;
let role = bundle.role.read().unwrap().id;
let member_id = bundle.user.object.read().unwrap().id;
GuildMember::add_role(&mut bundle.user, guild, member_id, role).await?;
GuildMember::add_role(&mut bundle.user, None, guild, member_id, role).await?;
let member = GuildMember::get(&mut bundle.user, guild, member_id)
.await
.unwrap();
assert!(member.roles.contains(&role));

GuildMember::remove_role(&mut bundle.user, guild, member_id, role).await?;
GuildMember::remove_role(&mut bundle.user, None, guild, member_id, role).await?;
let member = GuildMember::get(&mut bundle.user, guild, member_id)
.await
.unwrap();
Expand Down

0 comments on commit 35913ff

Please sign in to comment.