Hopefully finished help command

This commit is contained in:
Stijn
2022-03-09 22:37:44 +01:00
parent 9f1f62d593
commit ba55956bbf
6 changed files with 91 additions and 24 deletions
+15
View File
@@ -0,0 +1,15 @@
package com.alttd.util;
import net.dv8tion.jda.api.entities.Member;
import net.dv8tion.jda.api.entities.Role;
import java.util.List;
import java.util.stream.Collectors;
public class Util {
public static List<Long> getGroupIds(Member member) {
return member.getRoles().stream()
.map(Role::getIdLong)
.collect(Collectors.toList());
}
}