mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-22 09:08:01 +01:00
Add DiscordService#getInviteUrl
This commit is contained in:
parent
3131cadf65
commit
520e8f991f
@ -73,6 +73,11 @@ public interface DiscordService {
|
|||||||
*/
|
*/
|
||||||
CompletableFuture<Void> modifyMemberRoles(final InteractionMember member, final Collection<InteractionRole> addRoles, final Collection<InteractionRole> removeRoles);
|
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.
|
* Gets unstable API that is subject to change at any time.
|
||||||
* @return {@link Unsafe the unsafe} instance.
|
* @return {@link Unsafe the unsafe} instance.
|
||||||
|
@ -517,6 +517,11 @@ public class JDADiscordService implements DiscordService, IEssentialsModule {
|
|||||||
return future;
|
return future;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getInviteUrl() {
|
||||||
|
return getSettings().getDiscordUrl();
|
||||||
|
}
|
||||||
|
|
||||||
public JDA getJda() {
|
public JDA getJda() {
|
||||||
return jda;
|
return jda;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user