Skip to main content

Context Menus

You can use context menus in a easy way importing the Context Menu decorator, the Maker class and the ApplicationCommandTypes enumerator.

Example

const { ApplicationCommandTypes, ContextMenu, Maker } = require("erine");

class Menus extends Maker {
@ContextMenu(ApplicationCommandTypes.USER)
async avatar(interaction) {
// do something...
}
}

module.exports = { data: Menus };