Skip to content

Commit 5a35af5

Browse files
committed
Use channelMention
1 parent 8943c19 commit 5a35af5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/commands/hilfe.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { channelMention } from "discord.js";
12
import type { BotContext } from "@/context.js";
23
import type { MessageCommand } from "@/commands/command.js";
34
import * as commandService from "@/service/command.js";
@@ -44,7 +45,7 @@ export default class HilfeCommand implements MessageCommand {
4445
await Promise.all(chunks.map(chunk => message.author.send(chunk)));
4546

4647
await message.author.send(
47-
"Bei Fragen kannst du dich über den Kanal #czs-Bot (<#902960751222853702>) an uns wenden!",
48+
`Bei Fragen kannst du dich über den Kanal #csz-bot (${channelMention("902960751222853702")}) an uns wenden!`,
4849
);
4950

5051
await message.react("✉"); // Send this last, so we only display a confirmation when everything actually worked

0 commit comments

Comments
 (0)