public ChannelUpdatedEventArgs(
     CachedGuildChannel oldChannel,
     IGuildChannel newChannel)
 {
     OldChannel = oldChannel;
     NewChannel = newChannel;
 }
Ejemplo n.º 2
0
        public static CachedChannel Create(IGatewayClient client, ChannelJsonModel model)
        {
            switch (model.Type)
            {
            case ChannelType.Direct:
            case ChannelType.Group:
                // TODO: cached private channels?
                break;

            case ChannelType.Text:
            case ChannelType.Voice:
            case ChannelType.Category:
            case ChannelType.News:
            case ChannelType.Store:
            case ChannelType.Thread:
                return(CachedGuildChannel.Create(client, model));
            }

            return(null /*TransientUnknownChannel(client, model)*/);
        }