mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 13:34:28 +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
|
import asyncio
|
||||||
from ..utils import Command, Call
|
from ..utils import Command, Call
|
||||||
from ..error import InvalidInputError
|
from ..database.tables import Royal, Telegram, Discord
|
||||||
|
|
||||||
|
|
||||||
class RoyalnetprofileCommand(Command):
|
class RoyalnetprofileCommand(Command):
|
||||||
|
@ -9,9 +9,11 @@ class RoyalnetprofileCommand(Command):
|
||||||
command_description = "Invia in chat il link al tuo profilo Royalnet!"
|
command_description = "Invia in chat il link al tuo profilo Royalnet!"
|
||||||
command_syntax = ""
|
command_syntax = ""
|
||||||
|
|
||||||
|
require_alchemy_tables = {Royal, Telegram, Discord}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
async def common(cls, call: Call):
|
async def common(cls, call: Call):
|
||||||
author = await call.get_author()
|
author = await call.get_author(error_if_none=True)
|
||||||
if author is None:
|
if author is None:
|
||||||
await call.reply("⚠️ Devi essere registrato a Royalnet per usare questo comando!")
|
await call.reply("⚠️ Devi essere registrato a Royalnet per usare questo comando!")
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue