Skip to content
This repository has been archived by the owner on Apr 23, 2022. It is now read-only.

Commit

Permalink
Update WEBUSE.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Mairon31 authored Feb 1, 2021
1 parent 251b302 commit 89b6b94
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions WEBUSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ This method is not compatible with Discord.js v11 version.
```js
const { MessageEmbed, MessageAttachment } = require('discord.js');
const request = require('snekfetch');
request.get('http://tnai.ml/sfw/hug', {
request.get('https://tnai.ml/api/image?type=hug', {
headers: {
"Authorization": "YOUR_TOKEN"
}
}).then(response => {
const attachment = new MessageAttachment(response.body.url);
message.channel.send([attachment]);
const attachment = response.body.url;
message.channel.send([attachment]);
});
```

0 comments on commit 89b6b94

Please sign in to comment.