[Feature] Add new discord stuff (#2501)
* changesss - Added missing error code - Moved region a bit - Add new `guild feature` - Add new `NitroBasic` subscription plan * fix sending message in rest text-in-voice channels
This commit is contained in:
@@ -116,15 +116,15 @@ namespace Discord
|
|||||||
TargetUserNotInVoice = 40032,
|
TargetUserNotInVoice = 40032,
|
||||||
MessageAlreadyCrossposted = 40033,
|
MessageAlreadyCrossposted = 40033,
|
||||||
ApplicationNameAlreadyExists = 40041,
|
ApplicationNameAlreadyExists = 40041,
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region Action Preconditions/Checks (50XXX)
|
|
||||||
ApplicationInteractionFailedToSend = 40043,
|
ApplicationInteractionFailedToSend = 40043,
|
||||||
CannotSendAMessageInAForumChannel = 40058,
|
CannotSendAMessageInAForumChannel = 40058,
|
||||||
ThereAreNoTagsAvailableThatCanBeSetByNonModerators = 40066,
|
ThereAreNoTagsAvailableThatCanBeSetByNonModerators = 40066,
|
||||||
ATagIsRequiredToCreateAForumPostInThisChannel = 40067,
|
ATagIsRequiredToCreateAForumPostInThisChannel = 40067,
|
||||||
InteractionHasAlreadyBeenAcknowledged = 40060,
|
InteractionHasAlreadyBeenAcknowledged = 40060,
|
||||||
TagNamesMustBeUnique = 40061,
|
TagNamesMustBeUnique = 40061,
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region Action Preconditions/Checks (50XXX)
|
||||||
MissingPermissions = 50001,
|
MissingPermissions = 50001,
|
||||||
InvalidAccountType = 50002,
|
InvalidAccountType = 50002,
|
||||||
CannotExecuteForDM = 50003,
|
CannotExecuteForDM = 50003,
|
||||||
@@ -154,6 +154,7 @@ namespace Discord
|
|||||||
BulkDeleteMessageTooOld = 50034,
|
BulkDeleteMessageTooOld = 50034,
|
||||||
InvalidFormBody = 50035,
|
InvalidFormBody = 50035,
|
||||||
InviteAcceptedForGuildThatBotIsntIn = 50036,
|
InviteAcceptedForGuildThatBotIsntIn = 50036,
|
||||||
|
InvalidActivityAction = 50039,
|
||||||
InvalidAPIVersion = 50041,
|
InvalidAPIVersion = 50041,
|
||||||
FileUploadTooBig = 50045,
|
FileUploadTooBig = 50045,
|
||||||
InvalidFileUpload = 50046,
|
InvalidFileUpload = 50046,
|
||||||
@@ -161,6 +162,7 @@ namespace Discord
|
|||||||
InvalidGuild = 50055,
|
InvalidGuild = 50055,
|
||||||
InvalidMessageType = 50068,
|
InvalidMessageType = 50068,
|
||||||
PaymentSourceRequiredForGift = 50070,
|
PaymentSourceRequiredForGift = 50070,
|
||||||
|
CannotModifySystemWebhook = 50073,
|
||||||
CannotDeleteRequiredCommunityChannel = 50074,
|
CannotDeleteRequiredCommunityChannel = 50074,
|
||||||
CannotEditStickersWithinAMessage = 50080,
|
CannotEditStickersWithinAMessage = 50080,
|
||||||
InvalidSticker = 50081,
|
InvalidSticker = 50081,
|
||||||
|
|||||||
@@ -181,5 +181,9 @@ namespace Discord
|
|||||||
/// The guild has enabled the welcome screen.
|
/// The guild has enabled the welcome screen.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
WelcomeScreenEnabled = 1L << 41,
|
WelcomeScreenEnabled = 1L << 41,
|
||||||
|
/// <summary>
|
||||||
|
/// The guild has been set as a support server on the App Directory.
|
||||||
|
/// </summary>
|
||||||
|
DeveloperSupportServer = 1L << 42,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,6 +16,11 @@ namespace Discord
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Nitro subscription. Includes app perks as well as the games subscription service.
|
/// Nitro subscription. Includes app perks as well as the games subscription service.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
Nitro = 2
|
Nitro = 2,
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Nitro Basic subscription. Includes app perks like video backgrounds, sending bigger files.
|
||||||
|
/// </summary>
|
||||||
|
NitroBasic = 3
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,8 +19,7 @@ namespace Discord.Rest
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets whether or not the guild has Text-In-Voice enabled and the voice channel is a TiV channel.
|
/// Gets whether or not the guild has Text-In-Voice enabled and the voice channel is a TiV channel.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public virtual bool IsTextInVoice
|
public virtual bool IsTextInVoice => true;
|
||||||
=> Guild.Features.HasTextInVoice;
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public int Bitrate { get; private set; }
|
public int Bitrate { get; private set; }
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
|
|||||||
Reference in New Issue
Block a user