mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 11:34:18 +00:00
facepalm
This commit is contained in:
parent
37600a9e59
commit
8a4a51fc7c
2 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@
|
|||
|
||||
[tool.poetry]
|
||||
name = "royalnet"
|
||||
version = "5.11.4"
|
||||
version = "5.11.5"
|
||||
description = "A multipurpose bot and web framework"
|
||||
authors = ["Stefano Pigozzi <ste.pigozzi@gmail.com>"]
|
||||
license = "AGPL-3.0+"
|
||||
|
|
|
@ -128,7 +128,7 @@ class TelegramSerf(Serf):
|
|||
user: "telegram.User" = data.message.from_user
|
||||
TelegramT = data.alchemy.get(rbt.Telegram)
|
||||
result = await ru.asyncify(
|
||||
session.query(TelegramT).filter(TelegramT.discord_id == user.id).one_or_none
|
||||
session.query(TelegramT).filter(TelegramT.tg_id == user.id).one_or_none
|
||||
)
|
||||
if result is None and required:
|
||||
raise rc.CommandError("You must be registered to use this command.")
|
||||
|
|
Loading…
Reference in a new issue