-
-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v3: Inconsistent channel permission values for large guilds between sessions #413
Comments
How are you getting channel permissions? What's your code? |
for _, channel := range guildChannels {
if channel.Type != discord.GuildText && channel.Type != discord.GuildAnnouncement {
continue
}
private := false
if channel.ParentID.IsValid() {
category, err := client.ChannelStore.Channel(channel.ParentID)
if err == nil {
perms := discord.CalcOverwrites(*guild, *category, *selfMember)
private = !perms.Has(discord.PermissionViewChannel)
}
}
if private {
perms := discord.CalcOverwrites(*guild, channel, *selfMember)
private = !perms.Has(discord.PermissionViewChannel)
}
if private && !withPrivate {
continue
}
// ...
} |
|
|
What does |
|
Sorry, try |
The permission results seems to be inverted with using I did make my own version of |
Hmm, so https://github.com/diamondburned/arikawa/blob/v3.3.3/state/state.go#L310 should probably error out when |
Every other session ends up with channels in a specific large guild not having permissions (returning 0). The three other smaller guilds the account is in do not have this issue.
I have triaged with another one of my bot accounts in that guild running Dysnomia, targeting that account to check permissions across all channels and it shows correct values.
Additional context: ningen is used
The text was updated successfully, but these errors were encountered: