@commands.is_owner()
@profanity.command()
async def whitelist(ctx, target: Union[(Member, Role, TextChannel)]):
    'Whitelist a user, role or channel from the profanity filter.\n        \n        Usage: `profanity whitelist @dude`\n        '
    self = ctx.bot.get_cog('ProfanityFilter')
    if (target.id in self.whitelist):
        self.whitelist.remove(target.id)
        removed = True
    else:
        self.whitelist.add(target.id)
        removed = False
    (await self.coll.update_one({'_id': 'config'}, {'$set': {'whitelist': list(self.whitelist)}}, upsert=True))
    (await ctx.send(f"{('Un-w' if removed else 'W')}hitelisted {target.mention} from the profanity filter."))
Whitelist a user, role or channel from the profanity filter.

Usage: `profanity whitelist @dude`
@commands.is_owner()
@profanity.command()
async def whitelist(ctx, target: Union[(Member, Role, TextChannel)]):
    'Whitelist a user, role or channel from the profanity filter.\n        \n        Usage: `profanity whitelist @dude`\n        '
    self = ctx.bot.get_cog('ProfanityFilter')
    if (target.id in self.whitelist):
        self.whitelist.remove(target.id)
        removed = True
    else:
        self.whitelist.add(target.id)
        removed = False
    (await self.coll.update_one({'_id': 'config'}, {'$set': {'whitelist': list(self.whitelist)}}, upsert=True))
    (await ctx.send(f"{('Un-w' if removed else 'W')}hitelisted {target.mention} from the profanity filter."))