Browse Source

Minor fix

tags/docs-0.9
RogueException 9 years ago
parent
commit
4983e48583
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net/Models/Permissions.cs

+ 1
- 1
src/Discord.Net/Models/Permissions.cs View File

@@ -59,7 +59,7 @@ namespace Discord
public static ChannelPermissions PrivateOnly { get; } = new ChannelPermissions(Convert.ToUInt32("00000000000000011100110000000000", 2)); public static ChannelPermissions PrivateOnly { get; } = new ChannelPermissions(Convert.ToUInt32("00000000000000011100110000000000", 2));
public static ChannelPermissions VoiceOnly { get; } = new ChannelPermissions(Convert.ToUInt32("00000011111100000000000000011001", 2)); public static ChannelPermissions VoiceOnly { get; } = new ChannelPermissions(Convert.ToUInt32("00000011111100000000000000011001", 2));
public static ChannelPermissions All(Channel channel) => All(channel.Type, channel.IsPrivate); public static ChannelPermissions All(Channel channel) => All(channel.Type, channel.IsPrivate);
public static ChannelPermissions All(string channelType, bool isPrivate)
public static ChannelPermissions All(ChannelType channelType, bool isPrivate)
{ {
if (isPrivate) return PrivateOnly; if (isPrivate) return PrivateOnly;
else if (channelType == ChannelType.Text) return TextOnly; else if (channelType == ChannelType.Text) return TextOnly;


Loading…
Cancel
Save