diff --git a/src/@types/structures.ts b/src/@types/structures.ts index 26e2cf5a..4346c8a9 100644 --- a/src/@types/structures.ts +++ b/src/@types/structures.ts @@ -5,7 +5,7 @@ import VSUser from "../structures/VSUser"; import { RateLimitData } from "./rest"; export interface CommandData { - noToken?: boolean; + allowTokenless?: boolean; progress?: ProgressOptions } diff --git a/src/commands/apps/copy.id.ts b/src/commands/apps/copy.id.ts index 40c03704..8f425e5e 100644 --- a/src/commands/apps/copy.id.ts +++ b/src/commands/apps/copy.id.ts @@ -8,7 +8,7 @@ import TeamAppTreeItem from "../../structures/TeamAppTreeItem"; export default class extends Command { constructor() { super({ - noToken: true, + allowTokenless: true, }); } diff --git a/src/commands/apps/show.avatar.instead.status/always.ts b/src/commands/apps/show.avatar.instead.status/always.ts index e9d0a500..0d29948b 100644 --- a/src/commands/apps/show.avatar.instead.status/always.ts +++ b/src/commands/apps/show.avatar.instead.status/always.ts @@ -4,7 +4,7 @@ import Command from "../../../structures/Command"; export default class extends Command { constructor() { super({ - noToken: true, + allowTokenless: true, }); } diff --git a/src/commands/apps/show.avatar.instead.status/never.ts b/src/commands/apps/show.avatar.instead.status/never.ts index 5f809178..d4830fdc 100644 --- a/src/commands/apps/show.avatar.instead.status/never.ts +++ b/src/commands/apps/show.avatar.instead.status/never.ts @@ -4,7 +4,7 @@ import Command from "../../../structures/Command"; export default class extends Command { constructor() { super({ - noToken: true, + allowTokenless: true, }); } diff --git a/src/commands/apps/show.avatar.instead.status/when.online.ts b/src/commands/apps/show.avatar.instead.status/when.online.ts index 6f34a0d4..5b48506b 100644 --- a/src/commands/apps/show.avatar.instead.status/when.online.ts +++ b/src/commands/apps/show.avatar.instead.status/when.online.ts @@ -4,7 +4,7 @@ import Command from "../../../structures/Command"; export default class extends Command { constructor() { super({ - noToken: true, + allowTokenless: true, }); } diff --git a/src/commands/apps/sort/by/id.asc.ts b/src/commands/apps/sort/by/id.asc.ts index caf56c73..7bf099e5 100644 --- a/src/commands/apps/sort/by/id.asc.ts +++ b/src/commands/apps/sort/by/id.asc.ts @@ -4,7 +4,7 @@ import Command from "../../../../structures/Command"; export default class extends Command { constructor() { super({ - noToken: true, + allowTokenless: true, }); } diff --git a/src/commands/apps/sort/by/id.desc.ts b/src/commands/apps/sort/by/id.desc.ts index f35ddc18..112c178d 100644 --- a/src/commands/apps/sort/by/id.desc.ts +++ b/src/commands/apps/sort/by/id.desc.ts @@ -4,7 +4,7 @@ import Command from "../../../../structures/Command"; export default class extends Command { constructor() { super({ - noToken: true, + allowTokenless: true, }); } diff --git a/src/commands/apps/sort/by/memory.usage.asc.ts b/src/commands/apps/sort/by/memory.usage.asc.ts index e3638192..755f3480 100644 --- a/src/commands/apps/sort/by/memory.usage.asc.ts +++ b/src/commands/apps/sort/by/memory.usage.asc.ts @@ -4,7 +4,7 @@ import Command from "../../../../structures/Command"; export default class extends Command { constructor() { super({ - noToken: true, + allowTokenless: true, }); } diff --git a/src/commands/apps/sort/by/memory.usage.desc.ts b/src/commands/apps/sort/by/memory.usage.desc.ts index a69f218e..8b5cb462 100644 --- a/src/commands/apps/sort/by/memory.usage.desc.ts +++ b/src/commands/apps/sort/by/memory.usage.desc.ts @@ -4,7 +4,7 @@ import Command from "../../../../structures/Command"; export default class extends Command { constructor() { super({ - noToken: true, + allowTokenless: true, }); } diff --git a/src/commands/apps/sort/by/name.asc.ts b/src/commands/apps/sort/by/name.asc.ts index ddc22a4c..31d893ac 100644 --- a/src/commands/apps/sort/by/name.asc.ts +++ b/src/commands/apps/sort/by/name.asc.ts @@ -4,7 +4,7 @@ import Command from "../../../../structures/Command"; export default class extends Command { constructor() { super({ - noToken: true, + allowTokenless: true, }); } diff --git a/src/commands/apps/sort/by/name.desc.ts b/src/commands/apps/sort/by/name.desc.ts index 7b865833..72e0b17e 100644 --- a/src/commands/apps/sort/by/name.desc.ts +++ b/src/commands/apps/sort/by/name.desc.ts @@ -4,7 +4,7 @@ import Command from "../../../../structures/Command"; export default class extends Command { constructor() { super({ - noToken: true, + allowTokenless: true, }); } diff --git a/src/commands/apps/sort/by/none.ts b/src/commands/apps/sort/by/none.ts index aa9fb3a9..6901e11b 100644 --- a/src/commands/apps/sort/by/none.ts +++ b/src/commands/apps/sort/by/none.ts @@ -4,7 +4,7 @@ import Command from "../../../../structures/Command"; export default class extends Command { constructor() { super({ - noToken: true, + allowTokenless: true, }); } diff --git a/src/commands/apps/sort/by/started.asc.ts b/src/commands/apps/sort/by/started.asc.ts index 406497df..e01ecc84 100644 --- a/src/commands/apps/sort/by/started.asc.ts +++ b/src/commands/apps/sort/by/started.asc.ts @@ -4,7 +4,7 @@ import Command from "../../../../structures/Command"; export default class extends Command { constructor() { super({ - noToken: true, + allowTokenless: true, }); } diff --git a/src/commands/apps/sort/by/started.desc.ts b/src/commands/apps/sort/by/started.desc.ts index 64bcce3b..3d643ba0 100644 --- a/src/commands/apps/sort/by/started.desc.ts +++ b/src/commands/apps/sort/by/started.desc.ts @@ -4,7 +4,7 @@ import Command from "../../../../structures/Command"; export default class extends Command { constructor() { super({ - noToken: true, + allowTokenless: true, }); } diff --git a/src/commands/apps/sort/online/activate.ts b/src/commands/apps/sort/online/activate.ts index 0886c9eb..3599d17e 100644 --- a/src/commands/apps/sort/online/activate.ts +++ b/src/commands/apps/sort/online/activate.ts @@ -4,7 +4,7 @@ import Command from "../../../../structures/Command"; export default class extends Command { constructor() { super({ - noToken: true, + allowTokenless: true, }); } diff --git a/src/commands/apps/sort/online/deactivate.ts b/src/commands/apps/sort/online/deactivate.ts index 58c2c6af..37f1e499 100644 --- a/src/commands/apps/sort/online/deactivate.ts +++ b/src/commands/apps/sort/online/deactivate.ts @@ -4,7 +4,7 @@ import Command from "../../../../structures/Command"; export default class extends Command { constructor() { super({ - noToken: true, + allowTokenless: true, }); } diff --git a/src/commands/create.config.ts b/src/commands/create.config.ts index 35a42087..1c8b4d33 100644 --- a/src/commands/create.config.ts +++ b/src/commands/create.config.ts @@ -6,7 +6,7 @@ import Command from "../structures/Command"; export default class extends Command { constructor() { super({ - noToken: true, + allowTokenless: true, }); } diff --git a/src/commands/login.ts b/src/commands/login.ts index c2e561c8..7683f4a7 100644 --- a/src/commands/login.ts +++ b/src/commands/login.ts @@ -6,7 +6,7 @@ import { tokenIsDiscloudJwt, tokenValidator } from "../util"; export default class extends Command { constructor() { super({ - noToken: true, + allowTokenless: true, }); } diff --git a/src/commands/team/copy.id.ts b/src/commands/team/copy.id.ts index 0ac27fae..3ecec077 100644 --- a/src/commands/team/copy.id.ts +++ b/src/commands/team/copy.id.ts @@ -8,7 +8,7 @@ import TeamAppTreeItem from "../../structures/TeamAppTreeItem"; export default class extends Command { constructor() { super({ - noToken: true, + allowTokenless: true, }); } diff --git a/src/commands/team/sort/by/id.asc.ts b/src/commands/team/sort/by/id.asc.ts index 6981395a..8131c1d2 100644 --- a/src/commands/team/sort/by/id.asc.ts +++ b/src/commands/team/sort/by/id.asc.ts @@ -4,7 +4,7 @@ import Command from "../../../../structures/Command"; export default class extends Command { constructor() { super({ - noToken: true, + allowTokenless: true, }); } diff --git a/src/commands/team/sort/by/id.desc.ts b/src/commands/team/sort/by/id.desc.ts index a61534a0..526e02d0 100644 --- a/src/commands/team/sort/by/id.desc.ts +++ b/src/commands/team/sort/by/id.desc.ts @@ -4,7 +4,7 @@ import Command from "../../../../structures/Command"; export default class extends Command { constructor() { super({ - noToken: true, + allowTokenless: true, }); } diff --git a/src/commands/team/sort/by/memory.usage.asc.ts b/src/commands/team/sort/by/memory.usage.asc.ts index bda0710b..38c1f555 100644 --- a/src/commands/team/sort/by/memory.usage.asc.ts +++ b/src/commands/team/sort/by/memory.usage.asc.ts @@ -4,7 +4,7 @@ import Command from "../../../../structures/Command"; export default class extends Command { constructor() { super({ - noToken: true, + allowTokenless: true, }); } diff --git a/src/commands/team/sort/by/memory.usage.desc.ts b/src/commands/team/sort/by/memory.usage.desc.ts index ac4b8357..a6d7017f 100644 --- a/src/commands/team/sort/by/memory.usage.desc.ts +++ b/src/commands/team/sort/by/memory.usage.desc.ts @@ -4,7 +4,7 @@ import Command from "../../../../structures/Command"; export default class extends Command { constructor() { super({ - noToken: true, + allowTokenless: true, }); } diff --git a/src/commands/team/sort/by/name.asc.ts b/src/commands/team/sort/by/name.asc.ts index 8edcec26..1b3c3252 100644 --- a/src/commands/team/sort/by/name.asc.ts +++ b/src/commands/team/sort/by/name.asc.ts @@ -4,7 +4,7 @@ import Command from "../../../../structures/Command"; export default class extends Command { constructor() { super({ - noToken: true, + allowTokenless: true, }); } diff --git a/src/commands/team/sort/by/name.desc.ts b/src/commands/team/sort/by/name.desc.ts index e326eddd..f02ba99f 100644 --- a/src/commands/team/sort/by/name.desc.ts +++ b/src/commands/team/sort/by/name.desc.ts @@ -4,7 +4,7 @@ import Command from "../../../../structures/Command"; export default class extends Command { constructor() { super({ - noToken: true, + allowTokenless: true, }); } diff --git a/src/commands/team/sort/by/none.ts b/src/commands/team/sort/by/none.ts index 9e9bbec1..eca06121 100644 --- a/src/commands/team/sort/by/none.ts +++ b/src/commands/team/sort/by/none.ts @@ -4,7 +4,7 @@ import Command from "../../../../structures/Command"; export default class extends Command { constructor() { super({ - noToken: true, + allowTokenless: true, }); } diff --git a/src/commands/team/sort/by/started.asc.ts b/src/commands/team/sort/by/started.asc.ts index 1cddc5bd..6876e7d8 100644 --- a/src/commands/team/sort/by/started.asc.ts +++ b/src/commands/team/sort/by/started.asc.ts @@ -4,7 +4,7 @@ import Command from "../../../../structures/Command"; export default class extends Command { constructor() { super({ - noToken: true, + allowTokenless: true, }); } diff --git a/src/commands/team/sort/by/started.desc.ts b/src/commands/team/sort/by/started.desc.ts index 66aa0059..b0ebc61b 100644 --- a/src/commands/team/sort/by/started.desc.ts +++ b/src/commands/team/sort/by/started.desc.ts @@ -4,7 +4,7 @@ import Command from "../../../../structures/Command"; export default class extends Command { constructor() { super({ - noToken: true, + allowTokenless: true, }); } diff --git a/src/commands/team/sort/online/activate.ts b/src/commands/team/sort/online/activate.ts index c7d1f2b4..4bcf5bf9 100644 --- a/src/commands/team/sort/online/activate.ts +++ b/src/commands/team/sort/online/activate.ts @@ -4,7 +4,7 @@ import Command from "../../../../structures/Command"; export default class extends Command { constructor() { super({ - noToken: true, + allowTokenless: true, }); } diff --git a/src/commands/team/sort/online/deactivate.ts b/src/commands/team/sort/online/deactivate.ts index 9ec8d00b..ed91096c 100644 --- a/src/commands/team/sort/online/deactivate.ts +++ b/src/commands/team/sort/online/deactivate.ts @@ -4,7 +4,7 @@ import Command from "../../../../structures/Command"; export default class extends Command { constructor() { super({ - noToken: true, + allowTokenless: true, }); } diff --git a/src/structures/Discloud.ts b/src/structures/Discloud.ts index 8cf12d5b..6a4ea2e9 100644 --- a/src/structures/Discloud.ts +++ b/src/structures/Discloud.ts @@ -137,7 +137,7 @@ class Discloud extends EventEmitter { const commandName = `${category}.${file.name.replace(extname(file.name), "")}`; const disposable = commands.registerCommand(commandName, async (...args) => { - if (!command.data.noToken) + if (!command.data.allowTokenless) if (!this.hasToken) return; const taskData = {};