Skip to content

Commit

Permalink
reports: Switch red and green, add emojis to report buttons.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
KockaAdmiralac committed Feb 25, 2024
1 parent 44cd3fe commit 714dc29
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions modules/newusers/reports.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
],
Expand Down

0 comments on commit 714dc29

Please sign in to comment.