PermissionOverwrite vs ExtendedPermissionOverwrite Discrepancy #1009
Labels
area/core
Related to core module: events, entities, clients, specs
bug
A general bug
help wanted
Contributors welcome!
Milestone
To Reproduce:
textChannel#getPermissionOverwrites
returns a Set<ExtendedPermissionOverwrite>, whiletextChannel#addAllPermissionOverwrites
requires a Set<PermissionOverwrite>. This means that there is no straightforward way to get the list of permission overwrites for a channel, add n overwrites to it, and then send them off to discord.Expected Behavior:
After discussion with Panso, the method should potentially relax the type parameter there to allow
List<? extends PermissionOverwrite>
instead of strictly PermissionOverwrite.Actual Behavior:
Method permits only PermissionOverwrite and not ExtendedPermissionOverwrite as is provided elsewhere.
Version:
3.2.0-RC3
Other:
The text was updated successfully, but these errors were encountered: