helper method for matching bot embeds to users, improve helper method docs/formatting

This commit is contained in:
Xevion
2021-01-24 18:10:14 -06:00
parent e0e5636c5c
commit f2768df33f
2 changed files with 9 additions and 10 deletions

View File

@@ -54,7 +54,7 @@ class UnbelievaClient(discord.Client):
if message.author.id == self.bot_id and len(message.embeds) > 0:
embed = message.embeds[0]
is_self = embed.author.name == f'{self.user.name}#{self.user.discriminator}'
is_self = helpers.embed_author_matches(embed, self.user)
if is_self:
if parsers.TaskCooldownMessage.check_valid(message):