Skip to content

Commit

Permalink
Update webhooks to be struct with property names
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Jun 13, 2024
1 parent 7bebd45 commit cf3bcec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion game/game.go
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,10 @@ type DiscordWebhook struct {
Token string
}

type DiscordWebhooks map[string]DiscordWebhook
type DiscordWebhooks struct {
GameStarted DiscordWebhook
PhaseStarted DiscordWebhook
}

type Game struct {
ID *datastore.Key `datastore:"-"`
Expand Down

0 comments on commit cf3bcec

Please sign in to comment.