2using System.Collections.Generic;
13 public ICollection<ChatChannel>?
Channels {
get;
set; }
23 return Provider.Value
switch
25 ChatProvider.Discord =>
Channels?.All(x => UInt64.TryParse(x.ChannelData, out _)) ??
true,
26 ChatProvider.Irc =>
Channels?.All(x => x.ChannelData !=
null && x.ChannelData[0] ==
'#') ??
true,
27 _ =>
throw new InvalidOperationException(
"Invalid provider type!"),
bool ValidateProviderChannelTypes()
Validates Channels are correct for the ChatBotSettings.Provider.
ICollection< ChatChannel >? Channels
Channels the Discord bot should listen/announce in.
Manage the server chat bots.
ChatProvider? Provider
The ChatProvider used for the connection.