diff options
Diffstat (limited to 'src/system')
-rw-r--r-- | src/system/mod.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/system/mod.rs b/src/system/mod.rs index 30850d3..8864139 100644 --- a/src/system/mod.rs +++ b/src/system/mod.rs @@ -342,10 +342,11 @@ impl Manager { } message_parser::ParsedMessage::Command(Command::Nick(member_id, nick)) => { - let member = self.bots.get(&member_id).unwrap(); + let bot = self.bots.get(&member_id).unwrap(); let server_id = message.guild_id.expect("Message has no guild"); - member.set_nick(server_id, nick).await; + bot.set_nick(server_id, nick).await; + let _ = bot.delete_message(message.channel_id, message.id).await; } message_parser::ParsedMessage::Command(Command::UnknownCommand) => { |