This commit is contained in:
Dragon Fire
2020-10-24 14:25:32 -04:00
parent 40080cadef
commit ebd26a7b0e
25 changed files with 42 additions and 44 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ module.exports = class ApodCommand extends Command {
)
.setImage(body.media_type === 'image' ? body.url : null)
.setURL(body.url)
.setFooter(`Image Credits: ${body.copyright ? body.copyright.replace(/\n/g, '/') : 'Public Domain'}`)
.setFooter(`Image Credits: ${body.copyright ? body.copyright.replaceAll('\n', '/') : 'Public Domain'}`)
.setTimestamp();
return msg.embed(embed);
} catch (err) {
+1 -1
View File
@@ -33,7 +33,7 @@ module.exports = class TimeCommand extends Command {
label: 'time zone',
prompt: 'Which time zone do you want to get the time of?',
type: 'string',
parse: timeZone => timeZone.replace(/ /g, '_').toLowerCase()
parse: timeZone => timeZone.replaceAll(' ', '_').toLowerCase()
}
]
});