From 7ad24b07c00b755034777123d2362b6129d4a094 Mon Sep 17 00:00:00 2001 From: Androz2091 Date: Wed, 17 Feb 2021 18:59:04 +0100 Subject: [PATCH] :bug: Remove guild ID validation --- src/App.vue | 2 +- src/api.js | 17 ----------------- src/util/helpers.js | 1 - src/views/Settings.vue | 23 ++++++++--------------- 4 files changed, 9 insertions(+), 34 deletions(-) diff --git a/src/App.vue b/src/App.vue index e6067ac..1b74317 100644 --- a/src/App.vue +++ b/src/App.vue @@ -17,7 +17,7 @@ v-else-if="missingScope && $route.name !== 'Settings'" class="text-center mt-28" > - You selected a guild ({{ $store.state.selectedGuildID }}) on which your bot can't create Slash Commands. You can authorize it by clicking {{ $store.state.selectedGuildID }}) on which your bot can't create Slash Commands OR the guild doesn't exist. You can authorize it by clicking { - const url = getURL(clientID, guildID); - request(token, proxyURL, url, 'GET').then((value) => { - if (value) resolve(); - else reject(); - }); - }); -} - export function fetchCommands (clientID, token, proxyURL, guildID) { const url = getURL(clientID, guildID); return request(token, proxyURL, url, 'GET'); diff --git a/src/util/helpers.js b/src/util/helpers.js index 2700515..7b97fa8 100644 --- a/src/util/helpers.js +++ b/src/util/helpers.js @@ -1,3 +1,2 @@ -export const fakePromise = () => new Promise((resolve) => resolve()); export const cloneObject = (object) => Object.assign({}, object); export const formatString = (string) => string.charAt(0).toUpperCase() + string.substr(1, string.length).toLowerCase(); diff --git a/src/views/Settings.vue b/src/views/Settings.vue index 9b52baf..22e0fda 100644 --- a/src/views/Settings.vue +++ b/src/views/Settings.vue @@ -112,8 +112,7 @@