Model Reference
This page will document every model that is returned, and used, by toppy.
Warning
These objects should not be manually created by users.
- class toppy.models.Bot(id: int, username: str, discriminator: int, lib: str, prefix: str, shortdesc: str, tags: ~typing.List[str], owners: ~typing.List[int], date: ~datetime.datetime, certifiedBot: bool, points: int, monthlyPoints: int, donatebotguildid: str | None = None, guilds: ~typing.List[int] = <factory>, vanity: str | None = None, server_count: int | None = None, shard_count: int | None = None, invite: str | None = None, website: str | None = None, support: str | None = None, github: str | None = None, longdesc: str | None = None, avatar: str | None = None, defAvatar: str | None = None)
Represents a bot. This is used by the likes of search and find_one
- class toppy.models.User(id: int, username: str, discriminator: int, defAvatar: str, supporter: bool, certifiedDev: bool, mod: bool, webMod: bool, admin: bool, bio: str | None = None, banner: str | None = None, color: str | None = None, social: ~toppy.models.user.Social = <factory>)
Represents a single user on top.gg
See Also: https://docs.top.gg/docs/API/user#structure
- social: Social
The social usernames of the user