async def on_message(self, message):
    if (not self.enabled):
        return
    channel = message.channel
    author = message.author
    if isinstance(author, discord.User):
        return
    ids = ({author.id, channel.id} | {r.id for r in author.roles})
    if self.whitelist.intersection(ids):
        return
    profane = bool(predict([message.content])[0])
    if (not profane):
        return
    (await message.delete())
    temp = (await channel.send(f'{author.mention} your message has been deleted for containing profanity.'))
    (await asyncio.sleep(5))
    (await temp.delete())
async def on_message(self, message):
    if (not self.enabled):
        return
    channel = message.channel
    author = message.author
    if isinstance(author, discord.User):
        return
    ids = ({author.id, channel.id} | {r.id for r in author.roles})
    if self.whitelist.intersection(ids):
        return
    profane = bool(predict([message.content])[0])
    if (not profane):
        return
    (await message.delete())
    temp = (await channel.send(f'{author.mention} your message has been deleted for containing profanity.'))
    (await asyncio.sleep(5))
    (await temp.delete())