mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 13:34:28 +00:00
Fix data.find_user
This commit is contained in:
parent
e7f0b02e43
commit
5586b88833
1 changed files with 2 additions and 3 deletions
|
@ -5,8 +5,7 @@ import asyncio as aio
|
|||
import royalnet.utils as ru
|
||||
import io
|
||||
from .errors import UnsupportedError
|
||||
from .commandinterface import CommandInterface
|
||||
from royalnet.backpack.tables.aliases import Alias
|
||||
from royalnet.backpack.tables.users import User
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from .keyboardkey import KeyboardKey
|
||||
|
@ -83,7 +82,7 @@ class CommandData:
|
|||
|
||||
Parameters:
|
||||
alias: the Alias to search for."""
|
||||
return await Alias.find_user(self._interface.alchemy, self.session, alias)
|
||||
return await User.find(self.command.serf.alchemy, self.session, alias)
|
||||
|
||||
@contextlib.asynccontextmanager
|
||||
async def keyboard(self, text, keys: List["KeyboardKey"]):
|
||||
|
|
Loading…
Reference in a new issue