Modules
This page describes all the modules of boticordpy.
Bots
- class boticordpy.modules.Bots(bot, **kwargs)
Class with methods to work with Boticord API Bots.
- Parameters
bot (
commands.Bot
|commands.AutoShardedBot
) – The discord.py Bot instance
- async getBotComments(botID: int)
Returns comments of the discord bot with the given ID.
- Parameters
botID (
int
) – Discord Bot’s ID
- async getBotInfo(botID: int)
Returns information about discord bot with the given ID.
- Parameters
botID (
int
) – Discord Bot’s ID
- async postStats(stats: dict)
Post stats to Boticord API.
- Parameters
stats (
dict
) – A dictionary of {guilds
:int
,shards
:int
,users
:int
}
Servers
- class boticordpy.modules.Servers(bot, **kwargs)
Class with methods to work with Boticord API Servers.
- Parameters
bot (
commands.Bot
|commands.AutoShardedBot
) – The discord.py Bot instance
- async getServerComments(serverID: int)
Returns comments of the discord server with the given ID.
- Parameters
serverID (
int
) – Discord Server’s ID
- async getServerInfo(serverID: int)
Returns information about discord server with the given ID.
- Parameters
serverID (
int
) – Discord Server’s ID
- async postServerStats(message: discord.message.Message, custom_stats: Optional[dict] = None)
Post server stats to Boticord API.
- Parameters
message (
discord.Message
) – Message object of used command.custom_stats (
dict
) – Dict with custom server stats. (Optional)
Users
- class boticordpy.modules.Users(**kwargs)
Class with methods to work with Boticord API Users.
- async getUserBots(userID: int)
Returns bots of discord user with the given ID.
- Parameters
userID (
int
) – Discord User’s ID
- async getUserComments(userID: int)
Returns comments of discord user with the given ID.
- Parameters
userID (
int
) – Discord User’s ID
- async getUserInfo(userID: int)
Returns information about discord user with the given ID.
- Parameters
userID (
int
) – Discord User’s ID