#Error: Error code must be a valid DiscordjsErrorCodes

1 messages · Page 1 of 1 (latest)

lapis lark

In my client class I have the following code:

getInvite(){
        return this.generateInvite({
            scopes: ["bot", "applications.commands"],
            permissions: [
                "ViewAuditLog", "ManageRoles", "ManageChannels", "KickMembers", "BanMembers",
                "ManageEmojisAndStickers", "ManageWebhooks", "ViewChannel", "SendMessages",
                "ManageMessages", "AttachFiles", "EmbedLinks", "ReadMessageHistory", "UseExternalEmojis",
                "AddReactions"
            ]
        })
    }```

using the functions returns the following error:
`Error: Error code must be a valid DiscordjsErrorCodes`

When using djs 14.9.0 it works as it should