mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 17:28:27 -04:00
Read about the medusa system [here](https://nadekobot.readthedocs.io/en/latest/medusa/creating-a-medusa/)
16 lines
577 B
C#
16 lines
577 B
C#
namespace Nadeko.Snake;
|
|
|
|
/// <summary>
|
|
/// Overridden to implement parsers for custom types
|
|
/// </summary>
|
|
/// <typeparam name="T">Type into which to parse the input</typeparam>
|
|
public abstract class ParamParser<T>
|
|
{
|
|
/// <summary>
|
|
/// Overridden to implement parsing logic
|
|
/// </summary>
|
|
/// <param name="ctx">Context</param>
|
|
/// <param name="input">Input to parse</param>
|
|
/// <returns>A <see cref="ParseResult{T}"/> with successful or failed status</returns>
|
|
public abstract ValueTask<ParseResult<T>> TryParseAsync(AnyContext ctx, string input);
|
|
} |