Skip to content

Commit 43de46a

Browse files
committed
fix oieis command
1 parent f2b2023 commit 43de46a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/commands/user/oeis.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,12 @@ export default {
2828
const seq = interaction.options.get("sequence")?.value;
2929
if (!seq) return await interaction.editReply({ content: await __("errors.invalid_argument")(interaction.guildId) });
3030

31-
const { results } = await fetch(`https://oeis.org/search?q=${seq}&fmt=json`).then((r) => r.json());
31+
const f = await fetch(`https://oeis.org/search?q=${seq}&fmt=json`);
32+
33+
console.log(f);
34+
35+
const results = await f.json();
36+
3237
if (!results || !results.length) return await interaction.editReply({ content: "¯\\_(ツ)_/¯" });
3338

3439
const first5 = results.slice(0, 5);

0 commit comments

Comments
 (0)