1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2025-01-09 21:47:07 +00:00

discord: Upgrade MemberFlags from u8 to u32

why did it ever do this?! 522 does not even fit in a u8!
where did it even get this idea from?! omg.
This commit is contained in:
diamondburned 2024-04-23 23:13:21 -07:00
parent 95173b95f7
commit 5aaffc3687
No known key found for this signature in database
GPG key ID: D78C4471CE776659

View file

@ -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