Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gorniaky committed Jun 24, 2024
1 parent 245a218 commit bf2a47e
Show file tree
Hide file tree
Showing 31 changed files with 31 additions and 31 deletions.
2 changes: 1 addition & 1 deletion src/@types/structures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import VSUser from "../structures/VSUser";
import { RateLimitData } from "./rest";

export interface CommandData {
noToken?: boolean;
allowTokenless?: boolean;
progress?: ProgressOptions
}

Expand Down
2 changes: 1 addition & 1 deletion src/commands/apps/copy.id.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import TeamAppTreeItem from "../../structures/TeamAppTreeItem";
export default class extends Command {
constructor() {
super({
noToken: true,
allowTokenless: true,
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/commands/apps/show.avatar.instead.status/always.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Command from "../../../structures/Command";
export default class extends Command {
constructor() {
super({
noToken: true,
allowTokenless: true,
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/commands/apps/show.avatar.instead.status/never.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Command from "../../../structures/Command";
export default class extends Command {
constructor() {
super({
noToken: true,
allowTokenless: true,
});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Command from "../../../structures/Command";
export default class extends Command {
constructor() {
super({
noToken: true,
allowTokenless: true,
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/commands/apps/sort/by/id.asc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Command from "../../../../structures/Command";
export default class extends Command {
constructor() {
super({
noToken: true,
allowTokenless: true,
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/commands/apps/sort/by/id.desc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Command from "../../../../structures/Command";
export default class extends Command {
constructor() {
super({
noToken: true,
allowTokenless: true,
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/commands/apps/sort/by/memory.usage.asc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Command from "../../../../structures/Command";
export default class extends Command {
constructor() {
super({
noToken: true,
allowTokenless: true,
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/commands/apps/sort/by/memory.usage.desc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Command from "../../../../structures/Command";
export default class extends Command {
constructor() {
super({
noToken: true,
allowTokenless: true,
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/commands/apps/sort/by/name.asc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Command from "../../../../structures/Command";
export default class extends Command {
constructor() {
super({
noToken: true,
allowTokenless: true,
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/commands/apps/sort/by/name.desc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Command from "../../../../structures/Command";
export default class extends Command {
constructor() {
super({
noToken: true,
allowTokenless: true,
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/commands/apps/sort/by/none.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Command from "../../../../structures/Command";
export default class extends Command {
constructor() {
super({
noToken: true,
allowTokenless: true,
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/commands/apps/sort/by/started.asc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Command from "../../../../structures/Command";
export default class extends Command {
constructor() {
super({
noToken: true,
allowTokenless: true,
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/commands/apps/sort/by/started.desc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Command from "../../../../structures/Command";
export default class extends Command {
constructor() {
super({
noToken: true,
allowTokenless: true,
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/commands/apps/sort/online/activate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Command from "../../../../structures/Command";
export default class extends Command {
constructor() {
super({
noToken: true,
allowTokenless: true,
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/commands/apps/sort/online/deactivate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Command from "../../../../structures/Command";
export default class extends Command {
constructor() {
super({
noToken: true,
allowTokenless: true,
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/commands/create.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Command from "../structures/Command";
export default class extends Command {
constructor() {
super({
noToken: true,
allowTokenless: true,
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/commands/login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { tokenIsDiscloudJwt, tokenValidator } from "../util";
export default class extends Command {
constructor() {
super({
noToken: true,
allowTokenless: true,
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/commands/team/copy.id.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import TeamAppTreeItem from "../../structures/TeamAppTreeItem";
export default class extends Command {
constructor() {
super({
noToken: true,
allowTokenless: true,
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/commands/team/sort/by/id.asc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Command from "../../../../structures/Command";
export default class extends Command {
constructor() {
super({
noToken: true,
allowTokenless: true,
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/commands/team/sort/by/id.desc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Command from "../../../../structures/Command";
export default class extends Command {
constructor() {
super({
noToken: true,
allowTokenless: true,
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/commands/team/sort/by/memory.usage.asc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Command from "../../../../structures/Command";
export default class extends Command {
constructor() {
super({
noToken: true,
allowTokenless: true,
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/commands/team/sort/by/memory.usage.desc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Command from "../../../../structures/Command";
export default class extends Command {
constructor() {
super({
noToken: true,
allowTokenless: true,
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/commands/team/sort/by/name.asc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Command from "../../../../structures/Command";
export default class extends Command {
constructor() {
super({
noToken: true,
allowTokenless: true,
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/commands/team/sort/by/name.desc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Command from "../../../../structures/Command";
export default class extends Command {
constructor() {
super({
noToken: true,
allowTokenless: true,
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/commands/team/sort/by/none.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Command from "../../../../structures/Command";
export default class extends Command {
constructor() {
super({
noToken: true,
allowTokenless: true,
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/commands/team/sort/by/started.asc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Command from "../../../../structures/Command";
export default class extends Command {
constructor() {
super({
noToken: true,
allowTokenless: true,
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/commands/team/sort/by/started.desc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Command from "../../../../structures/Command";
export default class extends Command {
constructor() {
super({
noToken: true,
allowTokenless: true,
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/commands/team/sort/online/activate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Command from "../../../../structures/Command";
export default class extends Command {
constructor() {
super({
noToken: true,
allowTokenless: true,
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/commands/team/sort/online/deactivate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Command from "../../../../structures/Command";
export default class extends Command {
constructor() {
super({
noToken: true,
allowTokenless: true,
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/structures/Discloud.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ class Discloud extends EventEmitter<Events> {
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 = <TaskData>{};
Expand Down

0 comments on commit bf2a47e

Please sign in to comment.