mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 17:58:26 -04:00
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:
@@ -9,7 +9,7 @@ public partial class Utility
|
||||
public partial class UnitConverterCommands : NadekoModule<ConverterService>
|
||||
{
|
||||
[Cmd]
|
||||
public async partial Task ConvertList()
|
||||
public async Task ConvertList()
|
||||
{
|
||||
var units = await _service.GetUnitsAsync();
|
||||
|
||||
@@ -27,7 +27,7 @@ public partial class Utility
|
||||
|
||||
[Cmd]
|
||||
[Priority(0)]
|
||||
public async partial Task Convert(string origin, string target, decimal value)
|
||||
public async Task Convert(string origin, string target, decimal value)
|
||||
{
|
||||
var units = await _service.GetUnitsAsync();
|
||||
var originUnit = units.FirstOrDefault(x
|
||||
|
Reference in New Issue
Block a user