mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-03 06:57:39 +01:00
Use removeAccount return value for AccountLinkManager#unlinkAccount
This commit is contained in:
parent
8a0526b1e5
commit
694ed6e66f
@ -68,12 +68,7 @@ public class AccountLinkManager implements IEssentialsModule, DiscordLinkService
|
|||||||
public boolean unlinkAccount(InteractionMember member) {
|
public boolean unlinkAccount(InteractionMember member) {
|
||||||
Preconditions.checkNotNull(member, "member cannot be null");
|
Preconditions.checkNotNull(member, "member cannot be null");
|
||||||
|
|
||||||
if (!isLinked(member.getId())) {
|
return isLinked(member.getId()) && removeAccount(member, DiscordLinkStatusChangeEvent.Cause.UNSYNC_API);
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
removeAccount(member, DiscordLinkStatusChangeEvent.Cause.UNSYNC_API);
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean removeAccount(final InteractionMember member, final DiscordLinkStatusChangeEvent.Cause cause) {
|
public boolean removeAccount(final InteractionMember member, final DiscordLinkStatusChangeEvent.Cause cause) {
|
||||||
|
Loading…
Reference in New Issue
Block a user