add log on error
This commit is contained in:
parent
af5c7ff982
commit
320db6948c
@ -34,6 +34,8 @@ export default class ConfigManager {
|
||||
this.guildId = t.guildId
|
||||
if (!!t?.userManager)
|
||||
this.userManager = { ...this.userManager, ...t.userManager }
|
||||
} catch (error) { }
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
}
|
||||
}
|
||||
}
|
@ -27,7 +27,9 @@ export default class EcoManager {
|
||||
if (status !== 200) return null
|
||||
|
||||
return data
|
||||
} catch (error) { }
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
}
|
||||
return null
|
||||
}
|
||||
public async Message(message: string, from: string, to: string) {
|
||||
@ -48,7 +50,9 @@ export default class EcoManager {
|
||||
if (status !== 200) return null
|
||||
|
||||
return data
|
||||
} catch (error) { }
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
}
|
||||
return null
|
||||
}
|
||||
}
|
@ -22,7 +22,9 @@ export default class UserManager {
|
||||
this.config.userManager.users = data
|
||||
|
||||
return true
|
||||
} catch (error) { }
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
}
|
||||
return false
|
||||
}
|
||||
}
|
@ -69,11 +69,14 @@ client.on(Events.InteractionCreate, async interaction => {
|
||||
await interaction.reply({ content: "Ошибка выполнения", ephemeral: true })
|
||||
else if (interaction.replied || interaction.deferred)
|
||||
await interaction.editReply({ content: "Ошибка выполнения" })
|
||||
|
||||
console.log(error)
|
||||
}
|
||||
} else
|
||||
return
|
||||
} catch (error) {
|
||||
// console.log(error)
|
||||
console.log(error)
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user