From 7fe1aeab7730d3e9d52ca4c308e781ef0c08e1c3 Mon Sep 17 00:00:00 2001 From: Yuzu Date: Sun, 19 Sep 2021 09:12:57 -0700 Subject: [PATCH] Changed embed message --- src/discord/Settings.ts | 7 +++---- src/discord/osu.ts | 6 ------ 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/src/discord/Settings.ts b/src/discord/Settings.ts index 9284eb5..efec019 100644 --- a/src/discord/Settings.ts +++ b/src/discord/Settings.ts @@ -27,10 +27,9 @@ const EMBEDS = { user: (data instanceof Interaction) ? data.user : data.author }); }, - NO_PERMISSION: (data: Message | Interaction, permissions: string) => { - return makeErrorEmbed({ - title: 'Developer only', - description: 'You need ``' + permissions + '`` permission on this guild!', + NO_PERMISSION: (data: Message | Interaction) => { + return makeErrorEmbed ({ + title: 'You need ``ADMINISTRATOR`` permission on this guild!', user: (data instanceof Interaction) ? data.user : data.author }); }, diff --git a/src/discord/osu.ts b/src/discord/osu.ts index c6a9a06..ae15cdd 100644 --- a/src/discord/osu.ts +++ b/src/discord/osu.ts @@ -27,12 +27,6 @@ const EMBEDS = { user: (data instanceof Interaction) ? data.user : data.author }); }, - NO_PERMISSION: (data: Message | Interaction) => { - return makeErrorEmbed ({ - title: 'You need ``ADMINISTRATOR`` permission on this guild!', - user: (data instanceof Interaction) ? data.user : data.author - }); - }, NO_USER_FOUND: (data: Message | Interaction) => { return makeErrorEmbed ({ title: `That user doesn't exists on osu!`,