Add .sourceType to the ModalSubmitInteraction object
See original GitHub issueWhich package is the feature request for?
discord.js
Feature
Add .sourceType
or similarly named, which holds the type of interaction that created the form, eg. Button, ContextMenu, SlashCommand,
Ideal solution or implementation
ModalSubmitInteraction#sourceType
will return the type of the interaction that triggered the modal.
Alternative solutions or implementations
No response
Other context
I am unsure whether this is something that is easily implementable within the restrictions of the DiscordAPI but if it is it would be very useful.
Issue Analytics
- State:
- Created a year ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Add a sourcetype - Splunk Documentation
To add a sourcetype to an HDFS data source, you can simply add a stanza to $HUNK_HOME/etc/system/local/props.conf .
Read more >Splunk® Data Onboarding Cheat Sheet - Aplura
Configure field extractions to populate as many of the data model objects (fields) as you can. See the Splunk Common Information Model Add-on...
Read more >Sourcetype: we define it and explain its elements in Splunk
Sourcetype is one of the core indexed metadata fields Splunk ... about this as sourcetypes are already pre-defined by Technology Add-ons and ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You can use https://discord.js.org/#/docs/discord.js/main/class/ModalSubmitInteraction?scrollTo=isFromMessage
Additionally, this could be submitted as a feature request to Discord.