Fix mistake on adding/remove roles in togglechannel
@@ -196,10 +196,10 @@ class Extras(commands.Cog):
await author.send("Your access to elsewhere is restricted, contact staff to remove it.")
elif channelname == "artswhere":
if self.bot.roles['#art-discussion'] in author.roles:
- await author.send(self.bot.roles['#art-discussion'])
+ await author.remove_roles(self.bot.roles['#art-discussion'])
await author.send("Access to #art-discussion removed.")
elif self.bot.roles['no-art'] not in author.roles:
- await author.send(self.bot.roles['#art-discussion'])
+ await author.add_roles(self.bot.roles['#art-discussion'])
await author.send("Access to #art-discussion granted.")
else:
await author.send("Your access to #art-discussion is restricted, contact staff to remove it.")
