mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 09:48: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:
@@ -66,7 +66,7 @@ public partial class Help : NadekoModule<HelpService>
|
||||
}
|
||||
|
||||
[Cmd]
|
||||
public async partial Task Modules(int page = 1)
|
||||
public async Task Modules(int page = 1)
|
||||
{
|
||||
if (--page < 0)
|
||||
return;
|
||||
@@ -171,7 +171,7 @@ public partial class Help : NadekoModule<HelpService>
|
||||
|
||||
[Cmd]
|
||||
[NadekoOptions(typeof(CommandsOptions))]
|
||||
public async partial Task Commands(string module = null, params string[] args)
|
||||
public async Task Commands(string module = null, params string[] args)
|
||||
{
|
||||
module = module?.Trim().ToUpperInvariant();
|
||||
if (string.IsNullOrWhiteSpace(module))
|
||||
@@ -283,7 +283,7 @@ public partial class Help : NadekoModule<HelpService>
|
||||
|
||||
[Cmd]
|
||||
[Priority(0)]
|
||||
public async partial Task H([Leftover] string fail)
|
||||
public async Task H([Leftover] string fail)
|
||||
{
|
||||
var prefixless =
|
||||
_cmds.Commands.FirstOrDefault(x => x.Aliases.Any(cmdName => cmdName.ToLowerInvariant() == fail));
|
||||
@@ -312,7 +312,7 @@ public partial class Help : NadekoModule<HelpService>
|
||||
|
||||
[Cmd]
|
||||
[Priority(1)]
|
||||
public async partial Task H([Leftover] CommandInfo com = null)
|
||||
public async Task H([Leftover] CommandInfo com = null)
|
||||
{
|
||||
var channel = ctx.Channel;
|
||||
|
||||
@@ -342,7 +342,7 @@ public partial class Help : NadekoModule<HelpService>
|
||||
|
||||
[Cmd]
|
||||
[OwnerOnly]
|
||||
public async partial Task GenCmdList()
|
||||
public async Task GenCmdList()
|
||||
{
|
||||
_ = ctx.Channel.TriggerTypingAsync();
|
||||
|
||||
@@ -464,7 +464,7 @@ public partial class Help : NadekoModule<HelpService>
|
||||
}
|
||||
|
||||
[Cmd]
|
||||
public async partial Task Guide()
|
||||
public async Task Guide()
|
||||
=> await ConfirmLocalizedAsync(strs.guide("https://nadeko.bot/commands",
|
||||
"https://nadekobot.readthedocs.io/en/latest/"));
|
||||
|
||||
@@ -482,7 +482,7 @@ public partial class Help : NadekoModule<HelpService>
|
||||
|
||||
[Cmd]
|
||||
[OnlyPublicBot]
|
||||
public async partial Task Donate()
|
||||
public async Task Donate()
|
||||
{
|
||||
var selfhostInter = new DonateSelfhostingInteraction(_client, ctx.User.Id, SelfhostAction);
|
||||
|
||||
|
Reference in New Issue
Block a user