Documentation
¶
Index ¶
- type Database
- func (db *Database) Close() error
- func (db *Database) GetCommandsRunCount(ctx context.Context) (int, error)
- func (db *Database) GetGuildConfig(ctx context.Context, guildID string) (*GuildConfig, error)
- func (db *Database) IncrementCommandRun(ctx context.Context, guildID, userID, commandName string) error
- func (db *Database) Migrate()
- func (db *Database) Ping() error
- func (db *Database) SetLogChannel(ctx context.Context, guildID string, channelID string) error
- type GuildConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
func (*Database) GetCommandsRunCount ¶
GetCommandsRunCount returns the total number of commands run from the command_logs table
func (*Database) GetGuildConfig ¶
type GuildConfig ¶
Click to show internal directories.
Click to hide internal directories.