mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Fix bug with get_author on discord
This commit is contained in:
parent
7d93cd2827
commit
9cafd17b16
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ class DiscordBot(GenericBot):
|
|||
|
||||
async def get_author(data, error_if_none=False):
|
||||
user: discord.Member = data.message.author
|
||||
query = data._interface.session.query(self.master_table)
|
||||
query = data.session.query(self.master_table)
|
||||
for link in self.identity_chain:
|
||||
query = query.join(link.mapper.class_)
|
||||
query = query.filter(self.identity_column == user.id)
|
||||
|
|
Loading…
Reference in a new issue