mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Fix royalnetprofile command
This commit is contained in:
parent
946a8f23f9
commit
0fa2cec5c2
1 changed files with 4 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
import asyncio
|
||||
from ..utils import Command, Call
|
||||
from ..error import InvalidInputError
|
||||
from ..database.tables import Royal, Telegram, Discord
|
||||
|
||||
|
||||
class RoyalnetprofileCommand(Command):
|
||||
|
@ -9,9 +9,11 @@ class RoyalnetprofileCommand(Command):
|
|||
command_description = "Invia in chat il link al tuo profilo Royalnet!"
|
||||
command_syntax = ""
|
||||
|
||||
require_alchemy_tables = {Royal, Telegram, Discord}
|
||||
|
||||
@classmethod
|
||||
async def common(cls, call: Call):
|
||||
author = await call.get_author()
|
||||
author = await call.get_author(error_if_none=True)
|
||||
if author is None:
|
||||
await call.reply("⚠️ Devi essere registrato a Royalnet per usare questo comando!")
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue