From 714dc29477e575b89d5696b607f26d95fb343431 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luka=20Simi=C4=87?= Date: Mon, 26 Feb 2024 00:14:53 +0100 Subject: [PATCH] reports: Switch red and green, add emojis to report buttons. LucyKuranSKYDOME reported that the button colors are not intuitive - red more usually means "spam" and green means "not spam". This makes sense, but to prevent old users from confusing the buttons I kept them on the same places and added additional emoji on them for extra clarity. --- modules/newusers/reports.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/modules/newusers/reports.js b/modules/newusers/reports.js index 1b7e809..18fd41b 100644 --- a/modules/newusers/reports.js +++ b/modules/newusers/reports.js @@ -319,15 +319,23 @@ class ReportsChannel { { // eslint-disable-next-line camelcase custom_id: `spam:${userId}:${username}`, + emoji: { + id: null, + name: '🗑️' + }, label: 'Spam', - style: 3, + style: 4, type: MessageComponentTypes.BUTTON }, { // eslint-disable-next-line camelcase custom_id: `notspam:${userId}:${username}`, + emoji: { + id: null, + name: '✔' + }, label: 'Not spam', - style: 4, + style: 3, type: MessageComponentTypes.BUTTON } ],