public void AssignChannel(Channel channel) { if (!AssignedChannels.Contains(channel)) { AssignedChannels.Add(channel); } }
public void RemoveChannelByID(Mixer mixer, int index, ChannelType channelType) { if (mixer.MixChannels.Any(y => y.ChannelIndex == index && y.ChannelType == channelType)) { AssignedChannels.Remove(mixer.MixChannels.First(x => x.ChannelIndex == index && x.ChannelType == channelType)); } }
internal SocketTextChannel GetChannel(AssignedChannels t) { switch (t) { case AssignedChannels.Suggestion: return(Guild.GetTextChannel(this.suggestionChannel.id)); } return(null); }
public void RemoveChannel(Channel channel) { AssignedChannels.Add(channel); }