mirror of
https://github.com/the-draupnir-project/Draupnir.git
synced 2026-06-04 06:41:18 +00:00
Make displaynames with spaces work
This commit is contained in:
@@ -21,7 +21,7 @@ defineInterfaceCommand({
|
||||
})
|
||||
|
||||
// !draupnir displayname <displayname>
|
||||
export async function execSetDisplayNameCommand(this: MjolnirContext, _keywords: ParsedKeywords, displaynameParts: string[]): Promise<CommandResult<any>> {
|
||||
export async function execSetDisplayNameCommand(this: MjolnirContext, _keywords: ParsedKeywords, ...displaynameParts: string[]): Promise<CommandResult<any>> {
|
||||
const displayname = displaynameParts.join(' ');
|
||||
try {
|
||||
await this.client.setDisplayName(displayname);
|
||||
|
||||
Reference in New Issue
Block a user