Skip to content

Commit

Permalink
possible fix for "socket hang up"
Browse files Browse the repository at this point in the history
  • Loading branch information
3vorp committed Oct 13, 2023
1 parent f4bedbe commit 749f7ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/commands/faithful/missing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export const command: SlashCommand = {
}

resultEmbed.addFields({
name: `${formatName(response[2].pack)[0]} - ${response[2].edition} - ${
name: `${formatName(response[2].pack)[0]} - ${
response[2].version
}`,
value: `${response[2].completion}% complete\n> ${response[1].length} ${
Expand Down
3 changes: 2 additions & 1 deletion src/helpers/functions/missing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export interface MissingOptions {
version: string;
total?: number;
}

export type MissingResult = [Buffer, string[], MissingOptions, Buffer?];

export const computeAll = async (
Expand Down Expand Up @@ -133,7 +134,7 @@ export const compute = async (
}

const versions: string[] = (
await axios.get(`${client.tokens.apiUrl}settings/versions.${edition}`)
await axios.get(`${client.tokens.apiUrl}textures/versions/${edition}`)
).data;
// latest version if versions doesn't include version (unexisting/unsupported)
if (!versions.includes(version)) version = versions[0];
Expand Down

0 comments on commit 749f7ae

Please sign in to comment.