[AB-68] adding invite filter with commands to allow/disallow invites, remove stored filtered invite links and show filtered invite links

removing database entities from command context
This commit is contained in:
Sheldan
2021-01-23 15:33:00 +01:00
parent fb3ed69650
commit 2a2a3aea70
182 changed files with 2571 additions and 325 deletions

View File

@@ -88,7 +88,7 @@ public interface AUserExperienceService {
* @param channel The {@link AChannel} in which the {@link dev.sheldan.abstracto.experience.models.templates.UserSyncStatusModel}
* should be posted to
*/
CompletableFuture<Void> syncUserRolesWithFeedback(AServer server, AChannel channel);
CompletableFuture<Void> syncUserRolesWithFeedback(AServer server, Long channelId);
/**
* Recalculates the role of a single user in a server and synchronize the {@link net.dv8tion.jda.api.entities.Role}

View File

@@ -1,6 +1,5 @@
package dev.sheldan.abstracto.experience.service;
import dev.sheldan.abstracto.core.models.database.AChannel;
import dev.sheldan.abstracto.core.models.database.ARole;
import dev.sheldan.abstracto.core.models.database.AServer;
import dev.sheldan.abstracto.experience.models.database.AExperienceLevel;
@@ -21,14 +20,14 @@ public interface ExperienceRoleService {
* @param role The {@link ARole} to set the level to
* @param level The level the {@link ARole} should be awarded at
*/
CompletableFuture<Void> setRoleToLevel(Role role, Integer level, AChannel channel);
CompletableFuture<Void> setRoleToLevel(Role role, Integer level, Long channelId);
/**
* Removes the role from the {@link dev.sheldan.abstracto.experience.models.database.AExperienceRole} configuration
* @param role The {@link ARole} to remove from the {@link dev.sheldan.abstracto.experience.models.database.AExperienceRole}
* configuration
*/
CompletableFuture<Void> unsetRole(ARole role, AChannel feedbackChannel);
CompletableFuture<Void> unsetRole(ARole role, Long channelId);
/**
* Calculates the appropriate {@link AExperienceRole} based on the provided list of {@link AExperienceRole}