MCPcopy Create free account
hub / github.com/Java-Discord/JavaBot / Checks

Method Checks

src/main/java/net/discordjug/javabot/util/Checks.java:29–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27 public static final Pattern HEX_PATTERN = Pattern.compile("^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$");
28
29 private Checks() {
30 }
31
32 public static boolean hasStaffRole(BotConfig botConfig, @NotNull Member member) {
33 return member.getRoles().contains(botConfig.get(member.getGuild()).getModerationConfig().getStaffRole());

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected