usageembed in command update

This commit is contained in:
Erik 2022-04-22 16:50:56 +03:00
parent 3195377d57
commit fe61f9c93f
Signed by untrusted user: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB

View File

@ -50,10 +50,10 @@ class Command extends Component {
throw new Error(`${this.resolveable} is missing an execute function.`);
}
usageEmbed(interaction, verbose = false) {
usageEmbed(invoker, verbose = false) {
const fields = [];
const { guild, subcommand } = interaction;
const { guild, subcommand } = invoker;
const { permissions: { type } } = guild._settings;
if (this.options.length) {