question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add .sourceType to the ModalSubmitInteraction object

See original GitHub issue

Which 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:closed
  • Created a year ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

0reactions
Jiralitecommented, Dec 25, 2022

Additionally, this could be submitted as a feature request to Discord.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found