Skip to content

Database

Getters, setters, and updaters for Compass's database

ServerDB

Class representing the bot's server database

add_guild

Add a new guild to the table Args: guild_id (int): Guild ID data (dict): Data to add to the table

get_all_guilds

Returns a list of all guild IDs in the table

get_field

Get specified field from a guild entry Args: guild_id (int): Guild ID field (str): Field to retrieve