Skip to content

Commit fca76b6

Browse files
committed
do not await sqlite3
1 parent f228e3f commit fca76b6

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/cogs/accents/cog.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ async def _add_accents(self, ctx: Context, member: discord.Member, accents: _Use
269269
async def _remove_accents(self, ctx: Context, member: discord.Member, accents: _UserAccentsType) -> None:
270270
# a special case. empty iterable means remove everything
271271
if not accents:
272-
await ctx.db.execute(
272+
ctx.db.execute(
273273
"DELETE FROM accents WHERE guild_id = ? AND user_id = ?",
274274
(
275275
ctx.guild.id, # type: ignore

src/context.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@
1919
__all__ = ("Context",)
2020

2121

22-
class Context(commands.Context["PINK"], Hookable):
23-
bot: PINK
24-
22+
class Context(commands.Context[PINK], Hookable):
2523
@property
2624
def prefix(self) -> Optional[str]:
2725
return self._prefix

0 commit comments

Comments
 (0)