Skip to content
This repository was archived by the owner on Jan 30, 2024. It is now read-only.

Commit 4950e4e

Browse files
committed
switch out DiscordUrl for AvatarUrl
1 parent e12a0f9 commit 4950e4e

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

models/util.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
package ttRequests_models
22

33
type BaseTotalPlayer struct {
4-
VrpId uint32 `json:"vrpId"`
5-
Name string `json:"name"`
6-
ServerId uint8 `json:"serverId"`
7-
DiscordUrl string `json:"discordUrl"`
8-
IsStaff bool `json:"isStaff"`
9-
IsDonor bool `json:"isDonor"`
10-
Job string `json:"job"`
4+
VrpId uint32 `json:"vrpId"`
5+
Name string `json:"name"`
6+
ServerId uint8 `json:"serverId"`
7+
AvatarUrl string `json:"avatarUrl"`
8+
IsStaff bool `json:"isStaff"`
9+
IsDonor bool `json:"isDonor"`
10+
Job string `json:"job"`
1111
}

util.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ func GetTotalPlayers() ([]models.BaseTotalPlayer, error) {
3030
}
3131

3232
newPlayer := models.BaseTotalPlayer{
33-
Name: player[0].(string),
34-
VrpId: uint32(vrp),
35-
DiscordUrl: player[3].(string),
36-
IsStaff: player[4].(bool),
37-
IsDonor: player[6].(bool),
38-
Job: player[5].(string),
39-
ServerId: i,
33+
Name: player[0].(string),
34+
VrpId: uint32(vrp),
35+
AvatarUrl: player[3].(string),
36+
IsStaff: player[4].(bool),
37+
IsDonor: player[6].(bool),
38+
Job: player[5].(string),
39+
ServerId: i,
4040
}
4141
newPlayers = append(newPlayers, newPlayer)
4242
}

0 commit comments

Comments
 (0)