Skip to content

Commit

Permalink
Add more known error codes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nihlus committed Jun 26, 2021
1 parent 38d4817 commit 4928b64
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions Backend/Remora.Discord.API.Abstractions/Results/DiscordError.cs
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,11 @@ public enum DiscordError
/// </summary>
UnknownApplicationCommandPermissions = 10066,

/// <summary>
/// Unknown stage instance.
/// </summary>
UnknownStageInstance = 10067,

/// <summary>
/// Bots cannot use this endpoint.
/// </summary>
Expand Down Expand Up @@ -236,9 +241,9 @@ public enum DiscordError
WriteRateLimitHit = 20028,

/// <summary>
/// Your stage channel topic contains disallowed words for a public stage.
/// Your stage channel topic, server name, description, or channel name contains disallowed words.
/// </summary>
DisallowedWordsInStageTopic = 20031,
DisallowedWords = 20031,

/// <summary>
/// Maximum number of guilds reached (100).
Expand Down Expand Up @@ -567,6 +572,11 @@ public enum DiscordError
/// </summary>
ResourceOverloaded = 130000,

/// <summary>
/// The stage channel is already open.
/// </summary>
StageAlreadyOpen = 150006,

/// <summary>
/// A thread has already been created for this message.
/// </summary>
Expand Down

0 comments on commit 4928b64

Please sign in to comment.