feature: build overrides (#2212)

* add build overrides

* override docs

* add server submodule

* add overrides to build step

* remove testing api url

Co-Authored-By: Quahu <quahuu@gmail.com>

Co-authored-by: Quahu <quahuu@gmail.com>
This commit is contained in:
Quin Lynch
2022-04-04 18:19:44 -03:00
committed by GitHub
parent 8522447c27
commit ce410513f4
10 changed files with 426 additions and 1 deletions

View File

@@ -0,0 +1,30 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Discord.Overrides
{
/// <summary>
/// Represents context thats passed to an override in the initialization step.
/// </summary>
public sealed class OverrideContext
{
/// <summary>
/// A callback used to log messages.
/// </summary>
public Action<string> Log { get; private set; }
/// <summary>
/// The info about the override.
/// </summary>
public Override Info { get; private set; }
internal OverrideContext(Action<string> log, Override info)
{
Log = log;
Info = info;
}
}
}