This commit is contained in:
2023-02-24 11:36:43 +02:00
parent 9ba4ca43e2
commit 532540b74f
7 changed files with 39 additions and 144 deletions

View File

@@ -47,7 +47,7 @@ internal class LevelCommand : DBCommand
public bool requireAdmin => false;
public async void ExecuteServer(SocketCommandContext context)
public async void ExecuteServer(CmdArgs context)
{
object[] user = await Variables.database.ReadDataArrayAsync($"SELECT * FROM Levels WHERE UserID='{context.Message.Author.Id}'");
if (user is null)
@@ -69,6 +69,11 @@ internal class LevelCommand : DBCommand
builder.WithAuthor(context.Message.Author.Mention);
await context.Channel.SendMessageAsync(embed: builder.Build());
}
//Optional method (tell the bot what should it do if the command is executed from a DM channel)
//public async void ExecuteDM(CmdArgs context) {
//
//}
}