Skip to content

Commit

Permalink
fix: Add missing attributes and optionals file
Browse files Browse the repository at this point in the history
  • Loading branch information
VelvetToroyashi committed Nov 2, 2024
1 parent d85f948 commit 80637f7
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,15 @@
//

using System.Collections.Generic;
using JetBrains.Annotations;
using Remora.Rest.Core;

namespace Remora.Discord.API.Abstractions.Objects;

/// <summary>
/// Represents a webhook event for when an application is authorized.
/// </summary>
[PublicAPI]
public interface IApplicationAuthorizedWebhookEvent
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,15 @@
//

using System;
using JetBrains.Annotations;
using OneOf;

namespace Remora.Discord.API.Abstractions.Objects;

/// <summary>
/// Represents a webhook event.
/// </summary>
[PublicAPI]
public interface IWebhookEvent
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//

using JetBrains.Annotations;
using Remora.Rest.Core;

namespace Remora.Discord.API.Abstractions.Objects;

/// <summary>
/// Represents a payload for a webhook event.
/// </summary>
[PublicAPI]
public interface IWebhookEventPayload
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"user": {
"username": "none",
"discriminator": "9999",
"id": "999999999999999999",
"avatar": "68b329da9893e34099c7d8ad5cb9c940"
},
"scopes": ["application.commands"]
}

0 comments on commit 80637f7

Please sign in to comment.