Skip to content

Commit

Permalink
Remove unused user discriminator
Browse files Browse the repository at this point in the history
  • Loading branch information
denverquane committed Jul 26, 2023
1 parent 7cc806d commit 881fa6a
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions bot/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ import (

// User struct
type User struct {
Nick string `json:"Nick"`
UserID string `json:"UserID"`
UserName string `json:"UserName"`
Discriminator string `json:"Discriminator"`
Nick string `json:"Nick"`
UserID string `json:"UserID"`
UserName string `json:"UserName"`
}

// UserData struct
Expand All @@ -24,10 +23,9 @@ type UserData struct {
func MakeUserDataFromDiscordUser(dUser *discordgo.User, nick string) UserData {
return UserData{
User: User{
Nick: nick,
UserID: dUser.ID,
UserName: dUser.Username,
Discriminator: dUser.Discriminator,
Nick: nick,
UserID: dUser.ID,
UserName: dUser.Username,
},
ShouldBeDeaf: false,
ShouldBeMute: false,
Expand Down

0 comments on commit 881fa6a

Please sign in to comment.