Merge remote-tracking branch 'libglfw/rust-command-parser' into rust-command-parser

This commit is contained in:
dusk 2025-01-03 20:18:35 +09:00
commit 7bd50db63e
No known key found for this signature in database
12 changed files with 575 additions and 1 deletions

View file

@ -51,6 +51,17 @@ public class Context
Parameters = new Parameters(message.Content?.Substring(commandParseOffset));
Rest = provider.Resolve<DiscordApiClient>();
Cluster = provider.Resolve<Cluster>();
try
{
Parameters = new ParametersFFI(message.Content?.Substring(commandParseOffset));
}
catch (PKError e)
{
// todo: not this
Reply($"{Emojis.Error} {e.Message}");
throw;
}
}
public readonly IDiscordCache Cache;