Skip to content
This repository has been archived by the owner on Mar 5, 2023. It is now read-only.

Commit

Permalink
Merge pull request #6 from lemm-e/member-avatar
Browse files Browse the repository at this point in the history
additional work on adding guild member avatar
  • Loading branch information
ashishjh-bst authored Apr 11, 2022
2 parents 5106222 + 3326871 commit 119e215
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ type MemberFields struct {
JoinedAt discordgo.Timestamp
Roles []int64
Nick string
Avatar string
}

type PresenceStatus int32
Expand Down Expand Up @@ -283,6 +284,7 @@ func MemberStateFromMember(member *discordgo.Member) *MemberState {
JoinedAt: member.JoinedAt,
Roles: member.Roles,
Nick: member.Nick,
Avatar: member.Avatar,
},
Pending: member.Pending,
Presence: nil,
Expand All @@ -300,6 +302,7 @@ func (ms *MemberState) DgoMember() *discordgo.Member {
GuildID: ms.GuildID,
JoinedAt: ms.Member.JoinedAt,
Nick: ms.Member.Nick,
Avatar: ms.Member.Avatar,
Roles: ms.Member.Roles,
User: &ms.User,
Pending: ms.Pending,
Expand Down

0 comments on commit 119e215

Please sign in to comment.