Browse Source

Add ModuleBase and EmbedBuilder docfx

pull/988/head
Hsu Still 7 years ago
parent
commit
878de473ff
2 changed files with 10 additions and 2 deletions
  1. +7
    -2
      src/Discord.Net.Commands/ModuleBase.cs
  2. +3
    -0
      src/Discord.Net.Core/Entities/Messages/EmbedBuilder.cs

+ 7
- 2
src/Discord.Net.Commands/ModuleBase.cs View File

@@ -21,11 +21,16 @@ namespace Discord.Commands
{ {
return await Context.Channel.SendMessageAsync(message, isTTS, embed, options).ConfigureAwait(false); return await Context.Channel.SendMessageAsync(message, isTTS, embed, options).ConfigureAwait(false);
} }

/// <summary>
/// The method to execute before executing the command.
/// </summary>
protected virtual void BeforeExecute(CommandInfo command) protected virtual void BeforeExecute(CommandInfo command)
{ {
} }

/// <summary>
/// The method to execute after executing the command.
/// </summary>
/// <param name="command"></param>
protected virtual void AfterExecute(CommandInfo command) protected virtual void AfterExecute(CommandInfo command)
{ {
} }


+ 3
- 0
src/Discord.Net.Core/Entities/Messages/EmbedBuilder.cs View File

@@ -4,6 +4,9 @@ using System.Collections.Immutable;


namespace Discord namespace Discord
{ {
/// <summary>
/// Builder for creating an <see cref="Embed"/> to be sent.
/// </summary>
public class EmbedBuilder public class EmbedBuilder
{ {
private readonly Embed _embed; private readonly Embed _embed;


Loading…
Cancel
Save