mirror of
https://github.com/RYGhub/royalnet.git
synced 2025-02-25 06:05:03 +00:00
this might work
This commit is contained in:
parent
5107a58028
commit
fef7ec4c94
1 changed files with 1 additions and 1 deletions
|
@ -279,7 +279,7 @@ def requires_voice_client(func):
|
|||
|
||||
def requires_rygdb(func, optional=False):
|
||||
async def new_func(channel: discord.Channel, author: discord.Member, params: typing.List[str], *args, **kwargs):
|
||||
session = await loop.run_in_executor(executor, db.Session)
|
||||
session = await loop.run_in_executor(executor, db.Session.__init__)
|
||||
dbuser = await loop.run_in_executor(executor,
|
||||
session.query(db.Discord)
|
||||
.filter_by(discord_id=author.id)
|
||||
|
|
Loading…
Add table
Reference in a new issue