fix: inverse logic

Signed-off-by: Infi <infi@infi.sh>
This commit is contained in:
Infi 2023-12-07 19:58:25 +01:00
parent 915446ebc9
commit 555385646e
1 changed files with 2 additions and 2 deletions

View File

@ -102,13 +102,13 @@ fun String.applyAutocompleteSuggestion(
this.replaceRange(
cursorPosition - suggestion.query.length - 1,
cursorPosition,
"#${suggestion.channel.name} "
"<#${suggestion.channel.id}> "
)
} else {
this.replaceRange(
cursorPosition - suggestion.query.length - 1,
cursorPosition,
"<#${suggestion.channel.id}> "
"#${suggestion.channel.name} "
)
}
}