From 1c957f2e02a908f03b6791963b76792e3f393a61 Mon Sep 17 00:00:00 2001 From: GregTCLTK Date: Sun, 12 Nov 2023 22:50:50 +0100 Subject: [PATCH] feat: daily multiplier for staff --- interactions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interactions.ts b/interactions.ts index 8bb67ce..0a536d7 100644 --- a/interactions.ts +++ b/interactions.ts @@ -285,7 +285,7 @@ export async function handleInteraction(interaction: Interaction) { } let reward = 10 + (Math.floor(Math.random() * 10)); - if ((await interaction.guild!.members.fetch(interaction.user.id)).premiumSince) + if ((await interaction.guild!.members.fetch(interaction.user.id)).premiumSince || (await interaction.guild!.members.fetch(interaction.user.id)).roles.cache.has("1120392307087261787")) reward *= 10; const res = await addCoins(interaction.user.id, reward); if (res === null) {