API¶
- class nextcord_ormar.Bot(command_prefix, database_url, **kwargs)¶
A subclass of the Nextcord Bot class that adds integration for Ormar. Refer to the Nextcord Bot docs.
- __init__(command_prefix, database_url, **kwargs)¶
Identical to the Nextcord Bot
__init__with the addition of the positionaldatabase_urlparameter.- Parameters:
command_prefix –
database_url – An SQLAlchemy database URL
help_command –
description –
kwargs –
- async close() None¶
Nextcord Bot’s close function. This is used to close the database connection so make sure to call
super()if you override it.- Returns: