Simplyfy Int
Signed-off-by: Chaoscaot <chaoscaot444@gmail.com>
Dieser Commit ist enthalten in:
Ursprung
21dd3e3e0c
Commit
96f54cf6df
@ -62,12 +62,7 @@ public class DiscordEventListener extends BasicDiscordListener {
|
||||
return;
|
||||
}
|
||||
|
||||
Event swEvent = Event.get(
|
||||
Integer.decode(
|
||||
event.getSelectedOptions()
|
||||
.get(0)
|
||||
.getValue()
|
||||
).intValue());
|
||||
Event swEvent = Event.get(Integer.decode(event.getSelectedOptions().get(0).getValue()));
|
||||
if(swEvent == null){
|
||||
event.reply("Das Event gibt es nicht").setEphemeral(true).queue();
|
||||
return;
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren