Extends the context of a command interaction.
The callback function to extend the context.
The extended context.
const customContext = extendContext((interaction) => { return { owner: '123456789012345678', // Add your custom properties here };}); Copy
const customContext = extendContext((interaction) => { return { owner: '123456789012345678', // Add your custom properties here };});
Extends the context of a command interaction.