This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
1
how do i get the channel an interaction is running in?
Post Body
if i'm running
async execute(interaction)
from a slash command, i want to check which channel it was invoked from, but i'm stuck how to do this? interaction.options.getstring('channel_id') just returns "cannot read properties of undefined (reading options)"
i'm assuming i've got something very obviously wrong here. very new to node.js and the discord library.
Author
Account Strength
90%
Account Age
6 years
Verified Email
Yes
Verified Flair
No
Total Karma
2,295
Link Karma
652
Comment Karma
1,623
Profile updated: 5 days ago
Posts updated: 7 months ago
Subreddit
Post Details
We try to extract some basic information from the post title. This is not
always successful or accurate, please use your best judgement and compare
these values to the post title and body for confirmation.
- Posted
- 10 months ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/Discordjs/c...