Remove Build Warnings for Obsolete Guild Permission Read Messages (#1067)

- Replaces the usages of `ReadMessages` with `ViewChannel`
- Renames the read message parameters of `GuildPermissions#Modify` to be view channel as well
This commit is contained in:
Chris Johnston
2018-05-25 06:38:59 -07:00
committed by Christopher F
parent bbbac85c46
commit fa759a22ea
3 changed files with 14 additions and 14 deletions

View File

@@ -138,12 +138,12 @@ namespace Discord
// individual permission test
perm = perm.Modify(readMessages: true);
Assert.True(perm.ReadMessages);
Assert.Equal(perm.RawValue, (ulong)GuildPermission.ReadMessages);
perm = perm.Modify(viewChannel: true);
Assert.True(perm.ViewChannel);
Assert.Equal(perm.RawValue, (ulong)GuildPermission.ViewChannel);
perm = perm.Modify(readMessages: false);
Assert.False(perm.ReadMessages);
perm = perm.Modify(viewChannel: false);
Assert.False(perm.ViewChannel);
Assert.Equal(GuildPermissions.None.RawValue, perm.RawValue);