Removed cmd source generator. Commands are no longer partial methods. Compilations should be slightly faster now. Updated packages and adapted drawing code to the new apis. There may be some bugs.

This commit is contained in:
Kwoth
2022-07-18 04:33:50 +02:00
parent 3db194c186
commit 99c60459f8
98 changed files with 747 additions and 788 deletions

View File

@@ -10,7 +10,7 @@ public partial class Games
{
[Cmd]
[RequireContext(ContextType.Guild)]
public async partial Task Hangmanlist()
public async Task Hangmanlist()
=> await SendConfirmAsync(GetText(strs.hangman_types(prefix)), _service.GetHangmanTypes().Join('\n'));
private static string Draw(HangmanGame.State state)
@@ -51,7 +51,7 @@ public partial class Games
[Cmd]
[RequireContext(ContextType.Guild)]
public async partial Task Hangman([Leftover] string? type = null)
public async Task Hangman([Leftover] string? type = null)
{
if (!_service.StartHangman(ctx.Channel.Id, type, out var hangman))
{
@@ -66,7 +66,7 @@ public partial class Games
[Cmd]
[RequireContext(ContextType.Guild)]
public async partial Task HangmanStop()
public async Task HangmanStop()
{
if (await _service.StopHangman(ctx.Channel.Id))
await ReplyConfirmLocalizedAsync(strs.hangman_stopped);