Skip to content

Commit

Permalink
discord: Upgrade MemberFlags from u8 to u32
Browse files Browse the repository at this point in the history
why did it ever do this?! 522 does not even fit in a u8!
where did it even get this idea from?! omg.
  • Loading branch information
diamondburned committed Apr 24, 2024
1 parent 95173b9 commit 5aaffc3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion discord/guild.go
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,8 @@ func (m Member) AvatarURLWithType(t ImageType, guildID GuildID) string {
return "https://cdn.discordapp.com/guilds/" + guildID.String() + "/users/" + m.User.ID.String() + "/avatars/" + t.format(m.Avatar)
}

type MemberFlags uint8
// MemberFlags represents the bit set of member flags.
type MemberFlags uint32

const (
MemberFlagsDidRejoin = 1 << iota
Expand Down

0 comments on commit 5aaffc3

Please sign in to comment.