Browse Source

Add case in RestChannel Create for Category type

pull/1004/head
Chris Johnston 8 years ago
parent
commit
ba2a58914d
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/Discord.Net.Rest/Entities/Channels/RestChannel.cs

+ 3
- 1
src/Discord.Net.Rest/Entities/Channels/RestChannel.cs View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
@@ -24,6 +24,8 @@ namespace Discord.Rest
case ChannelType.DM: case ChannelType.DM:
case ChannelType.Group: case ChannelType.Group:
return CreatePrivate(discord, model) as RestChannel; return CreatePrivate(discord, model) as RestChannel;
case ChannelType.Category:
return RestCategoryChannel.Create(discord, new RestGuild(discord, model.GuildId.Value), model);
default: default:
return new RestChannel(discord, model.Id); return new RestChannel(discord, model.Id);
} }


Loading…
Cancel
Save