Add DiscordService#getInviteUrl

This commit is contained in:
Josh Roy 2022-12-25 16:26:34 -05:00 committed by MD
parent 3131cadf65
commit 520e8f991f
2 changed files with 10 additions and 0 deletions

View File

@ -73,6 +73,11 @@ public interface DiscordService {
*/
CompletableFuture<Void> modifyMemberRoles(final InteractionMember member, final Collection<InteractionRole> addRoles, final Collection<InteractionRole> removeRoles);
/**
* Gets the Discord invite URL given in the EssentialsX Discord configuration.
*/
String getInviteUrl();
/**
* Gets unstable API that is subject to change at any time.
* @return {@link Unsafe the unsafe} instance.

View File

@ -517,6 +517,11 @@ public class JDADiscordService implements DiscordService, IEssentialsModule {
return future;
}
@Override
public String getInviteUrl() {
return getSettings().getDiscordUrl();
}
public JDA getJda() {
return jda;
}