mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: searchplayers
This commit is contained in:
1 parent
a9ba84e5d1
commit
8569079af9
12 files changed
+110
-91
No files matched your search
@@ -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}\`\`\``,
|
||||
|
||||
Reference in new issue
Block a user