feat: Add GetAvatar helper function

master
Luther Wen Xu 2020-05-30 20:45:24 +07:00
parent 68b3ffa799
commit 35115fd0d1
Signed by: chanbakjsd
GPG Key ID: B7D77E3E9D102B70
1 changed files with 4 additions and 0 deletions

@ -11,3 +11,7 @@ func GetMember(dg *discordgo.Session, guildID string, userID string) (*discordgo
} }
return dg.GuildMember(guildID, userID) return dg.GuildMember(guildID, userID)
} }
func GetAvatar(dg *discordgo.Session, user *discordgo.User) string {
return "https://cdn.discordapp.com/avatars/" + user.ID + "/" + user.Avatar + ".png"
}