Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DB *gorm.DB
)
Functions ¶
func CreateGuild ¶
CreateGuild creates a new guild.
guild: the guild to be created. error: an error if the creation fails.
func DeleteGuild ¶
DeleteGuild deletes a guild by its ID.
Parameter: guildID string Return type: error
func DoesGuildExist ¶
DoesGuildExist checks if the guild with the given ID exists in the database.
guildID string bool, error
func GetAllGuildIDs ¶
GetAllGuildIDs retrieves all guild IDs from the database.
No parameters. Returns a slice of strings and an error.
Types ¶
Click to show internal directories.
Click to hide internal directories.