Table of Contents

Property ResponseMessageFactory

Namespace
DSharpPlus.Interactivity
Assembly
DSharpPlus.Interactivity.dll

ResponseMessageFactory

Provides a string factory to generate a response when processing invalid interactions. This is ignored if ResponseBehavior is not Respond

public Func<ComponentInteractionCreatedEventArgs, IServiceProvider, string> ResponseMessageFactory { set; }

Property Value

Func<ComponentInteractionCreatedEventArgs, IServiceProvider, string>

Remarks

An invalid interaction in this case is considered as an interaction on a component where the invoking user does not match the specified user to wait for.