Skip to content

Commit

Permalink
Fix assignment to nil map
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRockettek committed Feb 16, 2024
1 parent d5ec8d8 commit 7241e1a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions internal/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ func NewSandwichState() *SandwichState {

mutualsMu: sync.RWMutex{},
Mutuals: make(map[discord.Snowflake]*sandwich_structs.StateMutualGuilds),

guildVoiceStatesMu: sync.RWMutex{},
GuildVoiceStates: make(map[discord.Snowflake]*sandwich_structs.StateGuildVoiceStates),
}

return state
Expand Down
2 changes: 1 addition & 1 deletion internal/sandwich.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (
)

// VERSION follows semantic versioning.
const VERSION = "1.12"
const VERSION = "1.12.1"

const (
PermissionsDefault = 0o744
Expand Down

0 comments on commit 7241e1a

Please sign in to comment.