mirror of
https://github.com/icewind1991/RGBot
synced 2026-06-03 20:14:10 +02:00
remove debug messages
This commit is contained in:
parent
6e378e8b66
commit
28f1a0e88e
1 changed files with 0 additions and 3 deletions
|
|
@ -57,7 +57,6 @@ impl Handler {
|
|||
fn get_or_create_role(&self, context: &Context, color: Colour, guild: &RwLock<Guild>) -> Result<Role> {
|
||||
let name = format!("#{}", color.hex());
|
||||
let color_position = self.get_color_role_position(&mut guild.read())?;
|
||||
dbg!(&color_position);
|
||||
if let Some(role) = guild.read().role_by_name(&name) {
|
||||
return Ok(role.clone());
|
||||
}
|
||||
|
|
@ -75,8 +74,6 @@ impl Handler {
|
|||
let role = self.get_or_create_role(&context, color, &guild)?;
|
||||
let mut member = guild.read().member(&context, user.id)?;
|
||||
|
||||
println!("Adding role {} for {}", role.name, member.nick.clone().unwrap_or_default());
|
||||
|
||||
let old_colors: Vec<RoleId> = member.roles(context.cache.clone()).unwrap_or(vec![]).iter()
|
||||
.filter(|r| self.color_regex.is_match(&r.name))
|
||||
.map(|r| r.id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue