Skip to content

Commit cef3aa0

Browse files
committed
add inline docs to modalComponentTypeConverter TryGetModalInteractionData
1 parent 138134f commit cef3aa0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Discord.Net.Interactions/TypeConverters/ModalComponents/ModalComponentTypeConverter.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ public virtual Task WriteAsync<TBuilder>(TBuilder builder, IDiscordInteraction i
3131
where TBuilder : class, IInteractableComponentBuilder
3232
=> Task.CompletedTask;
3333

34+
/// <summary>
35+
/// Tries to get the <see cref="IModalInteractionData"/> from the provided <see cref="IInteractionContext"/>.
36+
/// </summary>
37+
/// <param name="context">Context containing the <see cref="IModalInteractionData"/>.</param>
38+
/// <param name="modalData"><see cref="IModalInteractionData"/> found in the context if successful, <see langword="null"/> otherwise.</param>
39+
/// <returns><see langword="true"/> when successful.</returns>
3440
protected bool TryGetModalInteractionData(IInteractionContext context, out IModalInteractionData modalData)
3541
{
3642
if(context.Interaction is IModalInteraction modalInteraction)

0 commit comments

Comments
 (0)