Skip to content

Add DiscordOverwrite.GetMemberAsync and GetRoleAsync

Mateusz Brawański requested to merge github/fork/uwx/patch-45 into master

Created by: uwx

Summary

Adds convenience methods for getting the Member or Role affected by a permission overwrite.

Details

The current implementation of these methods is a hack, since DiscordOverwrite does not provide the guild's ID, only the channel ID. This could be changed in future if a new property was to be introduced.

Changes proposed

  • Add DiscordOverwrite.GetMemberAsync
  • Add DiscordOverwrite.GetRoleAsync

Merge request reports

Loading