fix: Crosspost throwing InvalidOperationException (#1671)
* Add INewsChannel * Renaming variable to match the new type
This commit is contained in:
@@ -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.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user