Skip to content

Commit 76393b4

Browse files
authored
Update counting.py
actually imported discord.errors
1 parent 2852ede commit 76393b4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cogs/commands/counting.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from discord import User
66
from discord.ext import commands
77
from discord.ext.commands import Bot, BucketType, Cog, Context, cooldown
8+
from discord.errors import NotFound
89
from sqlalchemy.exc import SQLAlchemyError
910

1011
from models import db_session
@@ -93,7 +94,7 @@ def check_dec_player(m):
9394
f"This chain lasted {length} consecutive messages."
9495
)
9596
break
96-
except discord.errors.NotFound:
97+
except NotFound:
9798
# If the last message count be found, an error is thrown, and the message was deleted - name/shame
9899
ctx.send(f"Oops! {get_name_string(last_message)} deleted their message. The next number is {count + step}")
99100

0 commit comments

Comments
 (0)