From 9c5515ca9f2c400789bd443a489376e2ef2c6f4b Mon Sep 17 00:00:00 2001 From: Mrs4s Date: Wed, 24 Nov 2021 00:03:56 +0800 Subject: [PATCH] fix typo --- client/guild.go | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/client/guild.go b/client/guild.go index 5f9038d1..d708cf00 100644 --- a/client/guild.go +++ b/client/guild.go @@ -71,14 +71,14 @@ type ( // GuildRole 频道身份组信息 GuildRole struct { - RoleId uint64 - RoleName string - ArgbColor uint32 - Indepedent bool - Num int32 - Owned bool - Disabled bool - MaxNum int32 + RoleId uint64 + RoleName string + ArgbColor uint32 + Independent bool + Num int32 + Owned bool + Disabled bool + MaxNum int32 } // ChannelInfo 子频道信息 @@ -311,14 +311,14 @@ func (s *GuildService) GetGuildRoles(guildId uint64) ([]*GuildRole, error) { roles := make([]*GuildRole, 0, len(body.Roles)) for _, role := range body.Roles { roles = append(roles, &GuildRole{ - RoleId: role.GetRoleId(), - RoleName: role.GetName(), - ArgbColor: role.GetArgbColor(), - Indepedent: role.GetIndependent() == 1, - Num: role.GetNum(), - Owned: role.GetOwned() == 1, - Disabled: role.GetDisabled() == 1, - MaxNum: role.GetMaxNum(), + RoleId: role.GetRoleId(), + RoleName: role.GetName(), + ArgbColor: role.GetArgbColor(), + Independent: role.GetIndependent() == 1, + Num: role.GetNum(), + Owned: role.GetOwned() == 1, + Disabled: role.GetDisabled() == 1, + MaxNum: role.GetMaxNum(), }) } return roles, nil