mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-05-02 20:19:55 +03:00
Add xmldocs.
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
parent
1cd309e498
commit
e883e143eb
15 changed files with 271 additions and 54 deletions
|
@ -9,6 +9,9 @@ using Remora.Results;
|
|||
|
||||
namespace Boyfriend;
|
||||
|
||||
/// <summary>
|
||||
/// Handles responding to various interactions.
|
||||
/// </summary>
|
||||
public class InteractionResponders : InteractionGroup {
|
||||
private readonly FeedbackService _feedbackService;
|
||||
|
||||
|
@ -16,6 +19,11 @@ public class InteractionResponders : InteractionGroup {
|
|||
_feedbackService = feedbackService;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// A button that will output an ephemeral embed containing the information about a scheduled event.
|
||||
/// </summary>
|
||||
/// <param name="state">The ID of the guild and scheduled event, encoded as "guildId:eventId".</param>
|
||||
/// <returns>A feedback sending result which may or may not have succeeded.</returns>
|
||||
[Button("scheduled-event-details")]
|
||||
public async Task<Result> OnStatefulButtonClicked(string? state = null) {
|
||||
if (state is null) return Result.FromError(new ArgumentNullError(nameof(state)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue