Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Commit

Permalink
fix: Updated user messages for unexpected errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusbegby committed Jul 14, 2023
1 parent 6a44a37 commit f36b4d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const logger = require('./services/logger.js');
const { EmbedBuilder } = require('discord.js');
const { Player, onBeforeCreateStream } = require('discord-player');
const { stream } = require('yt-stream');
const { embedColors, botInfo } = require('./config.json');
const { embedColors, embedIcons, botInfo } = require('./config.json');
require('dotenv').config();

// Setup required permissions for the bot to work
Expand Down Expand Up @@ -186,7 +186,7 @@ client.on('interactionCreate', async (interaction) => {
embeds: [
new EmbedBuilder()
.setDescription(
`**Unexpected Error**\nThere was an error while executing this command! Please try again.\n\n_If this issue persists, please submit a bug report in the bot [support server](${botInfo.supportServerInviteUrl})._`
`**${embedIcons.error} Uh-oh... _Something_ went wrong!**\nThere was an unexpected error while trying to execute this command.\n\nYou can try to perform the command again.\n\n_If this problem persists, please submit a bug report in the **[support server](${botInfo.supportServerInviteUrl})**._`
)
.setColor(embedColors.colorError)
]
Expand Down

0 comments on commit f36b4d9

Please sign in to comment.