Skip to content

Commit d68fe65

Browse files
authored
Merge pull request #176 from python-discord/levels_bugfix
Bugfix: variable hadn't been renamed everywhere
2 parents 019a9bf + 236e757 commit d68fe65

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

bot/exts/levels/_cog.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ async def on_message(self, msg: discord.Message) -> None:
202202
return
203203
if msg.channel.id not in ALLOWED_CHANNELS or msg.author.bot:
204204
return
205-
if len(self.active_message_rules) == 0:
205+
if len(self.active_message_rule_triggers) == 0:
206206
return
207207

208208
total_points = 0
@@ -233,7 +233,7 @@ async def on_reaction_add(self, reaction: discord.Reaction, user: discord.Member
233233
return
234234
if reaction.message.channel.id not in ALLOWED_CHANNELS or user.bot:
235235
return
236-
if len(self.active_reaction_rules) == 0:
236+
if len(self.active_reaction_rule_triggers) == 0:
237237
return
238238

239239
if isinstance(reaction.emoji, str):

0 commit comments

Comments
 (0)