guild not defined in dms

This commit is contained in:
Erik 2021-06-11 22:17:50 +03:00
parent 811dfe7d43
commit 060892b83a
No known key found for this signature in database
GPG Key ID: 7E862371D3409F16

View File

@ -61,7 +61,7 @@ class Command extends Component {
usageEmbed(message, verbose = false) {
const { guild } = message;
const type = guild._settings.permissionType;
const type = guild?._settings.permissionType;
const prefix = guild?.prefix || this.client.prefix;
const fields = [];