Context menus

You create context menus via the slash commands folder. Create a new file and paste the following into it:

const { contextMenu } = require("dotwood.js");

module.exports = {
    data: new contextMenu({
        name: "ping"
    }),

    run: async (client, interaction, args) => {
        // Code here
    },
};

Last updated