We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ae81e9 commit b35d4bcCopy full SHA for b35d4bc
1 file changed
package/src/utils/patchMessageTextCommand.ts
@@ -27,6 +27,7 @@ export function patchMessageTextCommand(messageText: string, mentionedUserIds: s
27
* The required format is "/ban @userid reason"
28
*/
29
if (trimmedMessageText.startsWith('/ban ')) {
30
+ // TODO: There is a bug here. If the name has two words, the reason will be the surname of the user.
31
const reasonText = trimmedMessageText.split(' ').pop() ?? '';
32
return `/ban @${mentionedUserIds[0]} ${reasonText}`.trim();
33
}
0 commit comments