Documentation ¶
Index ¶
- type Config
- type Database
- func (db Database) CreateUser(userInfo User) (err error)
- func (db Database) EnsureUser(guildid, userid string) (user User, err error)
- func (db Database) GetTopUser(guildid string) (User, error)
- func (db Database) GetUser(userid, guildid string) (user User, err error)
- func (db Database) IsUserInDatabase(userid, guildid string) (bool, error)
- func (db Database) UpdateUser(user User) (err error)
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
Database stores information about the database connection.
func (Database) CreateUser ¶
CreateUser creates the user in the database.
func (Database) EnsureUser ¶
EnsureUser checks if the user exists in the database, if not it will create the user in the database.
func (Database) GetTopUser ¶
GetTopUser returns a user struct containing user data of the user with the most tacos in the guild.
func (Database) IsUserInDatabase ¶
IsUserInDatabase checks if the user is in the database.
func (Database) UpdateUser ¶
UpdateUser updates a user's account data.
Click to show internal directories.
Click to hide internal directories.