From 7a8e7bf2131b3137f533a34e4b6e387b83b1205a Mon Sep 17 00:00:00 2001 From: Dustin Pianalto Date: Sat, 23 Jan 2021 16:05:02 -0900 Subject: [PATCH] use nullable string in user --- internal/exts/utils/utils.go | 1 - user.go | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/exts/utils/utils.go b/internal/exts/utils/utils.go index 292413f..942b311 100644 --- a/internal/exts/utils/utils.go +++ b/internal/exts/utils/utils.go @@ -263,7 +263,6 @@ func addUserCommandFunc(ctx disgoman.Context, args []string) { if ctx.Message.Author.ID == ctx.CommandManager.Owners[0] { user := geeksbot.User{ ID: ctx.Message.Author.ID, - SteamID: "", IsActive: true, IsStaff: true, IsAdmin: true, diff --git a/user.go b/user.go index 8fedccc..dcba7c9 100644 --- a/user.go +++ b/user.go @@ -1,8 +1,10 @@ package geeksbot +import "database/sql" + type User struct { ID string - SteamID string + SteamID sql.NullString IsActive bool IsStaff bool IsAdmin bool