#Modal Command Help

1 messages · Page 1 of 1 (latest)

lusty stump
#

i know nothing about modals so im not sure

latent yarrow
#
  1. Interactivity is an official extension
  2. You can't respond to an modal with deferred message update as this type is for message components only afaik
inland nebulaBOT
#

DSharpPlus.Entities.DiscordInteractionResponseType.DeferredChannelMessageWithSource

Summary

Acknowledges an interaction to edit to a response later. The user sees a "thinking" state.

Declaration

public const DiscordInteractionResponseType DeferredChannelMessageWithSource = DiscordInteractionResponseType.DeferredChannelMessageWithSource;
latent yarrow
#

or

inland nebulaBOT
#

DSharpPlus.Entities.DiscordInteractionResponseType.ChannelMessageWithSource

Summary

Responds to the interaction with a message.

Declaration

public const DiscordInteractionResponseType ChannelMessageWithSource = DiscordInteractionResponseType.ChannelMessageWithSource;
latent yarrow
#

also i recommend to not mix and match in this case

#

if you use interactivity just use the interaction you get in the result

#

so you dont need the event handler in this case

#

nope

#

your interactivity result contains the interaction which you also get in the event handler

#

interactivity is for writing complex command flows in one place

#

yeah

#

the result you get contains the event args which you have to use

#

similar to your event handler

#

No problem

#

That's also kinda on us, our docs for interactivity are a bit out of date

latent yarrow
#

you have to acknolwedge the interaction which is in the interactivity result

latent yarrow
#

modalSubmission contains a new interaction which was created when the modal was submitted. That interaction has to be answered