mirror of https://github.com/vizality/vizality
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
413 B
17 lines
413 B
import { toPlural } from '@vizality/util/string';
|
|
|
|
export default {
|
|
command: 'stop',
|
|
description: 'Temporarily disables all addons. Reload Discord to restore.',
|
|
async executor (_, type) {
|
|
try {
|
|
await vizality.manager[toPlural(type)].stop();
|
|
} catch (err) {
|
|
return {
|
|
send: false,
|
|
result: `There was a problem terminating all ${toPlural(type)}:`, err
|
|
};
|
|
}
|
|
}
|
|
};
|