Add missing methods to IComponentInteraction (#2201)

This commit is contained in:
d4n
2022-03-26 07:44:13 -05:00
committed by GitHub
parent 82473bce69
commit 741ed809d6
3 changed files with 30 additions and 15 deletions

View File

@@ -492,5 +492,13 @@ namespace Discord.Rest
/// <inheritdoc/>
IUserMessage IComponentInteraction.Message => Message;
/// <inheritdoc />
Task IComponentInteraction.UpdateAsync(Action<MessageProperties> func, RequestOptions options)
=> Task.FromResult(Update(func, options));
/// <inheritdoc />
Task IComponentInteraction.DeferLoadingAsync(bool ephemeral, RequestOptions options)
=> Task.FromResult(DeferLoading(ephemeral, options));
}
}