From f03ad33e993ba2c9061584e520a0bb4e9d757ce2 Mon Sep 17 00:00:00 2001 From: MTRNord Date: Sun, 3 Sep 2023 15:48:45 +0200 Subject: [PATCH] Make displaynames with spaces work --- src/commands/SetDisplayNameCommand.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/SetDisplayNameCommand.ts b/src/commands/SetDisplayNameCommand.ts index 3414c061..ae6e905b 100644 --- a/src/commands/SetDisplayNameCommand.ts +++ b/src/commands/SetDisplayNameCommand.ts @@ -21,7 +21,7 @@ defineInterfaceCommand({ }) // !draupnir displayname -export async function execSetDisplayNameCommand(this: MjolnirContext, _keywords: ParsedKeywords, displaynameParts: string[]): Promise> { +export async function execSetDisplayNameCommand(this: MjolnirContext, _keywords: ParsedKeywords, ...displaynameParts: string[]): Promise> { const displayname = displaynameParts.join(' '); try { await this.client.setDisplayName(displayname);