Merge pull request #1 from soowan/master

Delete key, not set value to nil
This commit is contained in:
Christopher F 2018-11-04 17:37:03 -05:00 committed by GitHub
commit c8828fe4d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -182,6 +182,6 @@ func (player *Player) Destroy() error {
if err != nil { if err != nil {
return err return err
} }
player.manager.players[player.guildID] = nil delete(player.manager.players, player.guildID)
return nil return nil
} }