feat: searchplayers

This commit is contained in:
TresAbhi committed 2023-05-02 23:01:56 +00:00
1 parent a9ba84e5d1
commit 8569079af9
12 files changed
+110 -91

No files matched your search

+2 -2
View File
@@ -7,7 +7,7 @@ import isDev from '../utilities/isDev.js';
const PROCESS_ERROR_EVENTS = ['uncaughtException'];
const CLIENT_ERROR_EVENTS = ['error'];
function handleError(error: Error, client: Client) {
export function handleError(error: Error, client: Client) {
console.error(error);
(
@@ -17,7 +17,7 @@ function handleError(error: Error, client: Client) {
).send({
embeds: [
new EmbedBuilder()
.setTitle(`${client.user?.username} ran into a catastrophic error`)
.setTitle(`${client.user?.username} ran into an error`)
.setColor(NEGATIVE_COLOR)
.setDescription(
`\`\`\`${error.name}\n${error.message}\n${error.stack}\n${error.cause}\`\`\``,