Minor fix

This commit is contained in:
RogueException
2015-12-23 04:53:45 -04:00
parent 8350040e76
commit 4983e48583

View File

@@ -59,7 +59,7 @@ namespace Discord
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 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;
else if (channelType == ChannelType.Text) return TextOnly;