Fixed wikihow classic command bug
This commit is contained in:
parent
6bf0537c29
commit
c4e31ac409
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ import Command from "../../classes/command.js";
|
|||
|
||||
class WikihowCommand extends Command {
|
||||
async run() {
|
||||
if (!this.interaction.acknowledged) await this.acknowledge();
|
||||
await this.acknowledge();
|
||||
const request = await fetch("https://www.wikihow.com/api.php?action=query&generator=random&prop=imageinfo&format=json&iiprop=url&grnnamespace=6");
|
||||
const json = await request.json();
|
||||
const id = Object.keys(json.query.pages)[0];
|
||||
|
|
Loading…
Reference in a new issue