FridayNightFunkinBoyfriendBot/commands/errortest.js

12 lines
313 B
JavaScript
Raw Normal View History

2024-02-20 12:17:43 -05:00
const CommandError = require('../CommandModules/command_error')
module.exports = {
name: 'errortest',
description:['test errors'],
execute (context) {
const message = context.arguments.join(' ')
context.source.sendFeedback('hint hover your mouse over the error')
throw new Error(message)
}
}