forked from SteamWar/SteamWar
Fix VacationCommand
This commit is contained in:
@@ -180,7 +180,7 @@ public class VacationCommand extends ListenerAdapter {
|
|||||||
.filter(pair -> pair.right().startsWith(vacation))
|
.filter(pair -> pair.right().startsWith(vacation))
|
||||||
.limit(25)
|
.limit(25)
|
||||||
.map(pair -> {
|
.map(pair -> {
|
||||||
return new Command.Choice(pair.right(), pair.left().getLocation());
|
return new Command.Choice(pair.right(), Long.parseLong(pair.left().getLocation()));
|
||||||
})
|
})
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
event.replyChoices(choices)
|
event.replyChoices(choices)
|
||||||
|
|||||||
Reference in New Issue
Block a user