From d6688b63c7ace0f398e43b450c2aaefedacb2ccb Mon Sep 17 00:00:00 2001 From: Tyler Hill <31829732+soowan@users.noreply.github.com> Date: Fri, 2 Nov 2018 22:29:50 -0500 Subject: [PATCH] Delete key, not set value to nil --- player.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/player.go b/player.go index 89cbf1a..d4699d6 100644 --- a/player.go +++ b/player.go @@ -182,6 +182,6 @@ func (player *Player) Destroy() error { if err != nil { return err } - player.manager.players[player.guildID] = nil + delete(player.manager.players, player.guildID) return nil }