diff --git a/src/cogs/quote_quota.py b/src/cogs/quote_quota.py index 0c3f465..156a47b 100644 --- a/src/cogs/quote_quota.py +++ b/src/cogs/quote_quota.py @@ -236,7 +236,7 @@ class QuoteQuota(commands.Cog): # self.log.debug("Found untagged rich trump truth embed: %r", msg.id) # return True for __t_e in msg.embeds: - if __t_e.type == "rich" and __t_e.colour.value == 0x5448EE: + if __t_e.type == "rich" and __t_e.colour is not None and __t_e.colour.value == 0x5448EE: self.log.debug("Found tagged rich trump truth embed: %r", msg.id) return True return False @@ -275,7 +275,7 @@ class QuoteQuota(commands.Cog): ) messages: list[discord.Message] = await channel.history( limit=None, - after=discord.Object(1228516325681532928) + after=discord.Object(1229487065117233203) ).flatten() trump_stats = await self._process_trump_truths(messages) tate_stats = await self._process_tate_truths(messages)