added mod mail thread notification, if a user initiates a mod mail thread

added the concept of a mod mail role, these are roles being pinged when a thread is opened, and they also are able to execute mod mail related commands
fixed past thread count in mod mail header
added convenience method to allow a role to execute a whole feature
This commit is contained in:
Sheldan
2020-05-08 10:49:06 +02:00
parent ea6fe240f4
commit 7699075b33
27 changed files with 289 additions and 20 deletions

View File

@@ -9,6 +9,7 @@ public interface CommandService {
ACommand createCommand(String name, String moduleName, FeatureEnum featureEnum);
Boolean doesCommandExist(String name);
void allowCommandForRole(ACommand aCommand, ARole role);
void allowFeatureForRole(FeatureEnum featureEnum, ARole role);
void makeRoleImmuneForCommand(ACommand aCommand, ARole role);
void makeRoleAffectedByCommand(ACommand aCommand, ARole role);
void restrictCommand(ACommand aCommand, AServer server);

View File

@@ -46,4 +46,8 @@ public class ARole implements SnowFlake, Serializable {
public int hashCode() {
return Objects.hash(id, server, deleted);
}
public String getAsMention() {
return "<@&" + getId() + '>';
}
}