Skip to content

Commit

Permalink
feat(injecting): more info for interaction
Browse files Browse the repository at this point in the history
  • Loading branch information
FedeIlLeone committed Sep 15, 2023
1 parent 743f80b commit b7b1ed9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/plugins/injecting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,9 @@ export function start(): void {
},
],
executor: (interaction) => {
// You can access the guild and channel of where the command
// was executed with interaction.guild and interaction.channel

// Get the value of the option
const sendEmbed = interaction.getValue("my-option");

Check warning on line 245 in docs/plugins/injecting.mdx

View workflow job for this annotation

GitHub Actions / Run ESLint

'sendEmbed' is assigned a value but never used. Allowed unused vars must match /^_/u

Expand Down

0 comments on commit b7b1ed9

Please sign in to comment.