mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 12:25:02 +00:00
use Util methods for escaping inline code and code blocks
This commit is contained in:
parent
5e91a9fed3
commit
5de35f711d
11 changed files with 36 additions and 55 deletions
|
@ -1,6 +1,7 @@
|
|||
import { Util } from "discord.js";
|
||||
import { commandTypeHelpers as ct } from "../../../commandTypes";
|
||||
import { sendErrorMessage, sendSuccessMessage } from "../../../pluginUtils";
|
||||
import { disableInlineCode, trimLines } from "../../../utils";
|
||||
import { trimLines } from "../../../utils";
|
||||
import { parseFuzzyTimezone } from "../../../utils/parseFuzzyTimezone";
|
||||
import { timeAndDateCmd } from "../types";
|
||||
|
||||
|
@ -19,7 +20,7 @@ export const SetTimezoneCmd = timeAndDateCmd({
|
|||
pluginData,
|
||||
message.channel,
|
||||
trimLines(`
|
||||
Invalid timezone: \`${disableInlineCode(args.timezone)}\`
|
||||
Invalid timezone: \`${Util.escapeInlineCode(args.timezone)}\`
|
||||
Zeppelin uses timezone locations rather than specific timezone names.
|
||||
See the **TZ database name** column at <https://en.wikipedia.org/wiki/List_of_tz_database_time_zones> for a list of valid options.
|
||||
`),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue