This commit is contained in:
Raven Scott 2022-09-25 02:51:42 -04:00
parent 21d8446383
commit f9093f5681

View File

@ -32,17 +32,14 @@ module.exports = {
.then((response) => { .then((response) => {
let data = response.body[0] let data = response.body[0]
if (isNotDefined(data)){ if (isNotDefined(data)) {
return interaction.editReply("Sorry, nothing was found!") return interaction.editReply("Sorry, nothing was found!")
} }
if (isNotDefined(data.phonetics[1])) {
if (isNotDefined(data.phonetics[1])){
phonetic = "" phonetic = ""
} else { } else {
phonetic = data.phonetics[1].text phonetic = data.phonetics[1].text
} }
let audio = data.phonetics[0].audio let audio = data.phonetics[0].audio