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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Event swEvent = Event.get(
|
Event swEvent = Event.get(Integer.decode(event.getSelectedOptions().get(0).getValue()));
|
||||||
Integer.decode(
|
|
||||||
event.getSelectedOptions()
|
|
||||||
.get(0)
|
|
||||||
.getValue()
|
|
||||||
).intValue());
|
|
||||||
if(swEvent == null){
|
if(swEvent == null){
|
||||||
event.reply("Das Event gibt es nicht").setEphemeral(true).queue();
|
event.reply("Das Event gibt es nicht").setEphemeral(true).queue();
|
||||||
return;
|
return;
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren