Skip to content

Commit f049fab

Browse files
Update common/src/main/kotlin/com/lambda/module/modules/client/Discord.kt
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent cfa2e3f commit f049fab

File tree

1 file changed

+2
-1
lines changed
  • common/src/main/kotlin/com/lambda/module/modules/client

1 file changed

+2
-1
lines changed

common/src/main/kotlin/com/lambda/module/modules/client/Discord.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,11 @@ object Discord : Module(
102102
*/
103103
fun SafeContext.partyCreate() {
104104
if (!isDiscordLinked) return warn("You did not link your discord account")
105-
if (!player.isInParty) {
105+
if (player.isInParty) {
106106
if (player.isPartyOwner) deleteParty() else leaveParty()
107107
return
108108
}
109+
}
109110

110111
val (party, error) = createParty()
111112
if (error != null) warn("Failed to create a party: ${error.errorData}")

0 commit comments

Comments
 (0)