//Message Context Command Registration
await ready.rest.post(Routes.applicationCommands(ready.user.id), {
body: {
name: "Report to CADS",
type: ApplicationCommandType.Message,
integration_types: [1], // 1 Means it work in user installed version
contexts: [0,1,2] // 0 means guilds, 1 means bot dms, and 2 means other dm's
}
});
//Message Context Command Registration
await ready.rest.post(Routes.applicationCommands(ready.user.id), {
body: {
name: "Report to CADS",
type: ApplicationCommandType.Message,
integration_types: [1], // 1 Means it work in user installed version
contexts: [0,1,2] // 0 means guilds, 1 means bot dms, and 2 means other dm's
}
});