Skip to content
Dima YaFlay edited this page Apr 13, 2023 · 1 revision

asyncSPW

Initialization:

>>> import asyncspw
>>> api = asyncspw.api("card_id", "card_token")
>>> print(api.get_user(11111111111))
YaFlay

card_id: str - card_id is the card number received on the spworlds.ru website

card_token: str - card_token is the card token received on the spworlds.ru website

Methods

.get_user(discord_id: str, use_mojang_api: bool = False)

  • return:
    • User
  • Parameters:
    • discord_id: str - discord id of current user
    • use_mojang_api: bool - use mojang api for get user uuid

Useful for get user. Return User if not None.

.check_is_player(discord_id: str)

  • return:
    • bool
  • Parameters
    • discord_id: str - discord id of current user

Clone this wiki locally