-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Anime command, Jikan MAL API #33
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor observations here, but overall a great PR, specially for as your first PR, good job.
src/commands/Anime.js
Outdated
} | ||
|
||
async execute({ message, args }) { | ||
let msg = await this.sendMessage(message.channel, { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
msg is not reassigned, in that case it's better to use const
instead of let
src/commands/Anime.js
Outdated
{ | ||
name: 'Description', | ||
value: `${anime.description}`, | ||
inline: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this is the last field and the biggest, I think it makes sense for it to not be inline and take up a whole row
src/commands/Anime.js
Outdated
embed: { | ||
color: 0x337fd5, | ||
thumbnail: { | ||
url: 'https://cdn.discordapp.com/emojis/397911964988342282.gif', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Discord CDNs can't be trusted, as the content may dissapear without further notice, or someone may delete the emoji.
I have uploaded that to our own CDN, mind chaning the link? https://cdn.dyno.gg/fun/discord_loading.gif
retrying, changed let to const, gif link and deleted inline from last field
Searches anime based on the search args and returns the first result (from MyAnimeList)
(first time, be gentle)