fix: Crosspost throwing InvalidOperationException (#1671)

* Add INewsChannel

* Renaming variable to match the new type
This commit is contained in:
Paulo
2020-11-08 19:29:15 -03:00
committed by GitHub
parent 1e012ac0b8
commit 9134443494
6 changed files with 16 additions and 7 deletions

View File

@@ -34,7 +34,7 @@ namespace Discord.WebSocket
case ICategoryChannel categoryChannel: return ChannelType.Category;
case IDMChannel dmChannel: return ChannelType.DM;
case IGroupChannel groupChannel: return ChannelType.Group;
case SocketNewsChannel socketNewsChannel: return ChannelType.News;
case INewsChannel newsChannel: return ChannelType.News;
case ITextChannel textChannel: return ChannelType.Text;
default: throw new InvalidOperationException("Invalid channel type.");
}