Implement basic ban command

This commit is contained in:
2022-12-26 02:40:14 +01:00
parent 420666eab1
commit 35b2c8fb42
9 changed files with 235 additions and 93 deletions

View File

@@ -39,7 +39,7 @@ public class LoveCalculatorCommand extends SlashCommandImpl
OptionMapping firsUserArg = event.getOption("first");
if(firsUserArg != null)
{
firstUser = firsUserArg.getAsUser();
firstUser = firsUserArg.getAsUser(); //todo null check?
} else {
event.reply("\uD83D\uDE22 I need to know who to check! Please mention them.")
.setEphemeral(true)
@@ -50,7 +50,7 @@ public class LoveCalculatorCommand extends SlashCommandImpl
OptionMapping secondUserArg = event.getOption("second");
if(secondUserArg != null)
{
secondUser = secondUserArg.getAsUser();
secondUser = secondUserArg.getAsUser(); //todo null check?
} else {
secondUser = event.getUser();
}