Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"chalk": "^4.1.2",
"detritus-client": "^0.16.3",
"detritus-rest": "^0.7.0",
"dotenv": "^10.0.0",
"dotenv": "^14.1.0",
"imagescript": "^1.2.9",
"rsource-utils": "^0.0.14",
"toml": "^3.0.0",
Expand Down
4 changes: 2 additions & 2 deletions src/typeChecks.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//This needs optimization, contributions welcome.
// Maybe just subject to one, since we can just assume its going to be one or the other?

export module checkRover {
export namespace checkRover {
export async function ApiResponse(x: object): Promise<boolean> {
let to3: number = 0;
if (x.hasOwnProperty("status")) to3++;
Expand All @@ -23,7 +23,7 @@ export module checkRover {
}
}

export module checkBloxlink {
export namespace checkBloxlink {
export async function ApiResponse(x: object): Promise<boolean> {
let to3: number = 0;
if (x.hasOwnProperty("discordId")) to3++;
Expand Down
6 changes: 3 additions & 3 deletions src/typingsAndClasses/Roblox2DiscordApis.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//import { checkRover } from "../typeChecks";
import { HTTPStatusCodes } from "detritus-rest/lib/constants";

export module rover {
export namespace rover {
export class ApiResponse {
status!: string;

Expand Down Expand Up @@ -33,7 +33,7 @@ export module rover {
}
}

export module bloxlink {
export namespace bloxlink {
export class ApiResponse {
status!: "ok" | "error";
constructor(response: any) {
Expand Down Expand Up @@ -62,7 +62,7 @@ export module bloxlink {
}
}

export module roblox {
export namespace roblox {
export class ApiResolve {
Id!: number;
Username!: string;
Expand Down