You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

ModuleBase.cs 470 B

123456789101112131415
  1. using System.Threading.Tasks;
  2. namespace Discord.Commands
  3. {
  4. public abstract class ModuleBase
  5. {
  6. public IDiscordClient Client { get; internal set; }
  7. public CommandContext Context { get; internal set; }
  8. protected virtual async Task ReplyAsync(string message, bool isTTS = false, RequestOptions options = null)
  9. {
  10. await Context.Channel.SendMessageAsync(message, isTTS, options).ConfigureAwait(false);
  11. }
  12. }
  13. }