Documentation ¶
Index ¶
- Variables
- func AcceptGame(channel string) error
- func AcceptPlayer(channel string, user *discordgo.User) error
- func AwaitingPlayer(channel string) (string, bool)
- func CreateGameDocument(channel string, settings interface{}) error
- func DeleteGameDocument(channel string) error
- func GameIsAccepted(channel string) (bool, error)
- func GameIsAcceptedBy(channel string, user *discordgo.User) (bool, error)
- func GetCurrentPlayer(channel string) string
- func GetGameDocument(channel string) (d.GameSettings, error)
- func UpdateGameDocument(channel string, new interface{}) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Client *mongo.Client
Functions ¶
func AcceptGame ¶
func AwaitingPlayer ¶
func CreateGameDocument ¶
func DeleteGameDocument ¶
func GameIsAccepted ¶
func GetCurrentPlayer ¶
func GetGameDocument ¶
func GetGameDocument(channel string) (d.GameSettings, error)
func UpdateGameDocument ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.