Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions src/Discord.Net.Core/DiscordErrorCode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,14 @@ public enum DiscordErrorCode
MaximumStickersReached = 30039,
MaximumPruneRequestReached = 30040,
MaximumGuildWidgetsReached = 30042,
#endregion

#region General Request Errors (40XXX)
BitrateIsTooHighForChannelOfThisType = 30052,
MaximumNumberOfEditsReached = 30046,
MaximumNumberOfPinnedThreadsInAForumChannelReached = 30047,
MaximumNumberOfTagsInAForumChannelReached = 30048,
MaximumNumberOfWebhooksReached = 30058,
#endregion

#region General Request Errors (40XXX)
TokenUnauthorized = 40001,
InvalidVerification = 40002,
OpeningDMTooFast = 40003,
Expand All @@ -118,10 +119,11 @@ public enum DiscordErrorCode
ApplicationNameAlreadyExists = 40041,
ApplicationInteractionFailedToSend = 40043,
CannotSendAMessageInAForumChannel = 40058,
ThereAreNoTagsAvailableThatCanBeSetByNonModerators = 40066,
ATagIsRequiredToCreateAForumPostInThisChannel = 40067,
InteractionHasAlreadyBeenAcknowledged = 40060,
TagNamesMustBeUnique = 40061,
ServiceResourceIsBeingRateLimited = 40062,
ThereAreNoTagsAvailableThatCanBeSetByNonModerators = 40066,
ATagIsRequiredToCreateAForumPostInThisChannel = 40067,
#endregion

#region Action Preconditions/Checks (50XXX)
Expand Down Expand Up @@ -160,6 +162,7 @@ public enum DiscordErrorCode
InvalidFileUpload = 50046,
CannotSelfRedeemGift = 50054,
InvalidGuild = 50055,
InvalidRequestOrigin = 50067,
InvalidMessageType = 50068,
PaymentSourceRequiredForGift = 50070,
CannotModifySystemWebhook = 50073,
Expand Down
38 changes: 37 additions & 1 deletion src/Discord.Net.Core/Entities/Messages/MessageType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,48 @@ public enum MessageType
/// </remarks>
ThreadStarterMessage = 21,
/// <summary>
/// The message for a invite reminder.
/// The message for an invite reminder.
/// </summary>
GuildInviteReminder = 22,
/// <summary>
/// The message for a context menu command.
/// </summary>
ContextMenuCommand = 23,
/// <summary>
/// The message for an automod action.
/// </summary>
AutoModerationAction = 24,
/// <summary>
/// The message for a role subscription purchase.
/// </summary>
RoleSubscriptionPurchase = 25,
/// <summary>
/// The message for an interaction premium upsell.
/// </summary>
InteractionPremiumUpsell = 26,
/// <summary>
/// The message for a stage start.
/// </summary>
StageStart = 27,
/// <summary>
/// The message for a stage end.
/// </summary>
StageEnd = 28,
/// <summary>
/// The message for a stage speaker.
/// </summary>
StageSpeaker = 29,
/// <summary>
/// The message for a stage raise hand.
/// </summary>
StageRaiseHand = 30,
/// <summary>
/// The message for a stage raise hand.
/// </summary>
StageTopic = 31,
/// <summary>
/// The message for a guild application premium subscription.
/// </summary>
GuildApplicationPremiumSubscription = 32
}
}