Exemplo n.º 1
0
 var(channelId, total) = channelTotal;
Exemplo n.º 2
0
 /// <summary>
 /// Indicates if the provided custom chat command is already registered.
 /// </summary>
 /// <param name="channelId">The channelId to test.</param>
 /// <param name="command">The command name to test.</param>
 /// <returns><c>true</c> if that command already exists.</returns>
 public static async Task <bool> DoesCustomChatCommandExistAsync(string channelId, string command) => !(await CustomCommand.GetCustomCommandAsync(channelId, command).ConfigureAwait(false) is null);