BoticordWebhook

class boticordpy.BoticordWebhook(bot: Union[discord.ext.commands.bot.Bot, discord.ext.commands.bot.AutoShardedBot], boticord_client: boticordpy.client.BoticordClient)

This class is used as a manager for the Boticord webhook.

:param bot commands.Bot | commands.AutoShardedBot: The discord.py Bot instance

bot_webhook(route: str = '/bot', hook_key: str = '') boticordpy.webhook.BoticordWebhook

This method may be used to configure the route of boticord bot’s webhook.

:param route str: Bot’s webhook route. Must start with /. Defaults - /bot. :param hook_key str: Webhook authorization key.

Returns

Return type

BoticordWebhook

async close() None

Stops the webhook.

run(port: int)

Runs the webhook.

Parameters

port – The port to run the webhook on.