12 lines
313 B
JavaScript
12 lines
313 B
JavaScript
|
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)
|
||
|
|
||
|
}
|
||
|
}
|