Skip to content

Commit 8f17ee2

Browse files
committed
Use userMention
1 parent 81b17aa commit 8f17ee2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/service/lootDegradation.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
import { type Snowflake, userMention } from "discord.js";
12
import type { BotContext } from "@/context.js";
23

34
import * as time from "@/utils/time.js";
45
import * as lootService from "@/service/loot.js";
56
import { LootAttributeKindId, LootKindId, resolveLootTemplate } from "@/service/lootData.js";
67
import log from "@log";
78
import { randomEntry } from "@/service/random.js";
8-
import { type Snowflake, userMention } from "discord.js";
99

1010
export async function degradeItems(_context: BotContext) {
1111
log.info("Degrading loot items");
@@ -74,7 +74,7 @@ export async function exposeWithRadiation(context: BotContext) {
7474
await context.textChannels.hauptchat.send({
7575
embeds: [
7676
{
77-
description: `:radioactive: ${targetLoot.displayName} von <@${targetLoot.winnerId}> wurde verstrahlt. :radioactive:`,
77+
description: `:radioactive: ${targetLoot.displayName} von ${userMention(targetLoot.winnerId)} wurde verstrahlt. :radioactive:`,
7878
footer: {
7979
text: "Du solltest deinen Müll besser entsorgen",
8080
},
@@ -139,7 +139,7 @@ export async function runHalfLife(context: BotContext) {
139139
const decayStats = replacedStats
140140
.entries()
141141
.toArray()
142-
.map(([user, count]) => `${count}x von <@${user}>`);
142+
.map(([user, count]) => `${count}x von ${userMention(user)}`);
143143

144144
await context.textChannels.hauptchat.send({
145145
embeds: [

0 commit comments

Comments
 (0)