[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,
|
||||
MessageAlreadyCrossposted = 40033,
|
||||
ApplicationNameAlreadyExists = 40041,
|
||||
#endregion
|
||||
|
||||
#region Action Preconditions/Checks (50XXX)
|
||||
ApplicationInteractionFailedToSend = 40043,
|
||||
CannotSendAMessageInAForumChannel = 40058,
|
||||
ThereAreNoTagsAvailableThatCanBeSetByNonModerators = 40066,
|
||||
ATagIsRequiredToCreateAForumPostInThisChannel = 40067,
|
||||
InteractionHasAlreadyBeenAcknowledged = 40060,
|
||||
TagNamesMustBeUnique = 40061,
|
||||
#endregion
|
||||
|
||||
#region Action Preconditions/Checks (50XXX)
|
||||
MissingPermissions = 50001,
|
||||
InvalidAccountType = 50002,
|
||||
CannotExecuteForDM = 50003,
|
||||
@@ -154,6 +154,7 @@ namespace Discord
|
||||
BulkDeleteMessageTooOld = 50034,
|
||||
InvalidFormBody = 50035,
|
||||
InviteAcceptedForGuildThatBotIsntIn = 50036,
|
||||
InvalidActivityAction = 50039,
|
||||
InvalidAPIVersion = 50041,
|
||||
FileUploadTooBig = 50045,
|
||||
InvalidFileUpload = 50046,
|
||||
@@ -161,6 +162,7 @@ namespace Discord
|
||||
InvalidGuild = 50055,
|
||||
InvalidMessageType = 50068,
|
||||
PaymentSourceRequiredForGift = 50070,
|
||||
CannotModifySystemWebhook = 50073,
|
||||
CannotDeleteRequiredCommunityChannel = 50074,
|
||||
CannotEditStickersWithinAMessage = 50080,
|
||||
InvalidSticker = 50081,
|
||||
|
||||
@@ -181,5 +181,9 @@ namespace Discord
|
||||
/// The guild has enabled the welcome screen.
|
||||
/// </summary>
|
||||
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>
|
||||
/// Nitro subscription. Includes app perks as well as the games subscription service.
|
||||
/// </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>
|
||||
/// Gets whether or not the guild has Text-In-Voice enabled and the voice channel is a TiV channel.
|
||||
/// </summary>
|
||||
public virtual bool IsTextInVoice
|
||||
=> Guild.Features.HasTextInVoice;
|
||||
public virtual bool IsTextInVoice => true;
|
||||
/// <inheritdoc />
|
||||
public int Bitrate { get; private set; }
|
||||
/// <inheritdoc />
|
||||
|
||||
Reference in New Issue
Block a user