Skip to content

Commit

Permalink
feat: nick 属性
Browse files Browse the repository at this point in the history
- user 资源增加 nick 属性,表示用户昵称
- member 资源的 name 更名为 nick
  • Loading branch information
dezhiShen authored and dezhiShen committed Oct 21, 2023
1 parent 94cceaf commit 0bbc7c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/resource/guildmember/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import "github.com/dezhishen/satori-sdk-go/pkg/resource/user"

type GuildMember struct {
User *user.User `json:"user"`
Name string `json:"name"`
Nick string `json:"nick"`
Avatar string `json:"avatar"`
JoinAt int64 `json:"join_at"`
}
Expand Down
1 change: 1 addition & 0 deletions pkg/resource/user/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package user
type User struct {
Id string `json:"id"`
Name string `json:"name,omitempty"`
Nick string `json:"nick,omitempty"`
Avatar string `json:"avatar,omitempty"`
IsBot bool `json:"is_bot,omitempty"`
}
Expand Down

0 comments on commit 0bbc7c9

Please sign in to comment.