use nullable string in user

development v0.0.36
DustyP 5 years ago
parent 96e8388562
commit 7a8e7bf213

@ -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,

@ -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

Loading…
Cancel
Save