From 35913ff5179af3f4d7f62ca6b5b02e430ef76e65 Mon Sep 17 00:00:00 2001 From: kozabrada123 Date: Thu, 23 Jan 2025 11:03:02 +0100 Subject: [PATCH] tests --- tests/members.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/members.rs b/tests/members.rs index a66d25aa..4d23a934 100644 --- a/tests/members.rs +++ b/tests/members.rs @@ -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();