From c7b49b548425fa24aa04e30532f521293d14fe6a Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Mon, 17 Aug 2020 01:43:36 +0300 Subject: [PATCH] Tweaks to default message number formatting --- docs/commands.md | 6 +++--- src/formatters.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/commands.md b/docs/commands.md index d273f7d..2def0c0 100644 --- a/docs/commands.md +++ b/docs/commands.md @@ -64,11 +64,11 @@ Cancel the ping set by `!alert`. ### `!edit ` Edit your own previous reply sent with `!reply`. -`` is the message number shown in brackets before the user reply in the thread. +`` is the message number shown in front of staff replies in the thread channel. ### `!delete ` Delete your own previous reply sent with `!reply`. -`` is the message number shown in brackets before the user reply in the thread. +`` is the message number shown in front of staff replies in the thread channel. ### `!loglink` Get a link to the open Modmail thread's log. @@ -88,7 +88,7 @@ Prints the ID of the current DM channel with the user ### `!message ` Shows the DM channel ID, DM message ID, and message link of the specified user reply. -`` is the message number shown in brackets before the user reply in the thread. +`` is the message number shown in front of staff replies in the thread channel. ## Anywhere on the inbox server These commands can be used anywhere on the inbox server, even outside Modmail threads. diff --git a/src/formatters.js b/src/formatters.js index 6693276..e749ed4 100644 --- a/src/formatters.js +++ b/src/formatters.js @@ -98,7 +98,7 @@ const defaultFormatters = { result = `[${formattedTimestamp}] ${result}`; } - result = `\`[${threadMessage.message_number}]\` ${result}`; + result = `\`${threadMessage.message_number}\` ${result}`; return result; },