Misha133
82b772ac03
[Feature] Add missing property & new stuff ( #2521 )
...
* add active developer badge support
* add `OwnerId` to threads
* add default forum layout support
* oops, forgot to update modifyasync
* add missing application flags
* Add `50155` error code
2022-12-14 02:57:06 -04:00
Misha133
bd2f719774
Fix GetActiveThreadsAsync & add it to ITextChannel ( #2526 )
...
* fix `GetActiveThreadsAsync` being sadge
* ah, forgot about mocked channel
2022-12-14 02:56:06 -04:00
Misha133
01ae904fe1
[Feature] Add missing properties in forum & thread channels ( #2469 )
...
* add `AppliedTags` property
* convert collections into immutable arrays
* remove "not supported" remark
* implement `ThreadChannelProperties`
* Add `DefaultSlowModeInterval` and `DefaultSlowModeInterval` properties to forum channels
* add `Moderated` property to `ForumTag``
* `ForumTag` inherits `ISnowflakeEntity`
* Fix `DiscordRestClient.GetChannelAsync` not getting forum channel
* a lot of changes
added:
- channel flags
- `ForumTagBuilder`
- imroved channel modification
* fixed a bug in forum tag emoji parsing
* inherit forum channel from `INesteeChannel`
* implement `INestedChannel` in forum channels
* Add `Flags` property to channels
* add iteraface for forum tags & add equality operators
* Add default reaction emoji property
* add support for modifing default reaction & some renaming
* add createForumChannelAsync to guild
* *fix resharper being a d... and moving code to next line*
* add a `ForumChannels` property
* Some fixes & add support for `default_sort_order`
* fix misleading comment
* fix #2502
* support creating post with applied tags
* fix xmldoc
* set category id on model update
* add limit checks for tag count
2022-11-07 17:25:49 +01:00
Ge
6712ef4573
Fix duplicated members of DiscordErrorCode ( #2500 )
...
Additionally, fix typo in DiscordErrorCode
2022-11-07 17:24:19 +01:00
Misha133
ed3863597a
[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
2022-11-07 16:49:03 +01:00
Armano den Boef
bc89d3c485
Fix TimestampTag being sadge ( #2468 )
...
* Im so sad
* Im so sad v2
* oopsie uwu
2022-09-15 01:59:21 -03:00
Proddy
d1678d1e8f
Fixing localizations ( #2457 )
...
* Fixing localizations
* Fixed typo in `SlashCommandOptionBuilder.WithDescriptionLocalizations`
* Fixed typo in `SlashCommandOptionBuilder.AddNameLocalization`
* Changed `Build` method of both `ApplicationCommandOptionProperties` and `SlashCommandProperties` to not set the `NameLocalizations` and `DescriptionLocalizations` if null in the builder. Was causing an error in the setter.
* Update SlashCommandBuilder.cs
Fixing a missing `;`
* Update SlashCommandBuilder.cs
* Fixing _another_ missing `;`
* Update SlashCommandBuilder.cs
* Fixed `SlashCommandOptionBuilder.AddChoiceInternal` to not pass null `NameLocalizations`
* Update SlashCommandBuilder.cs
* Fecking semi-colons
* Update SlashCommandBuilder.cs
2022-09-10 23:07:49 +03:00
Discord-NET-Robot
1b01fed867
Add 50138 Error code ( #2456 )
...
Co-authored-by: Discord.Net Robot <robot@elons.sweatshop.stop >
Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com >
2022-09-10 08:08:22 +00:00
essoperagma
4834b27f90
Null check slash command localizations ( #2453 )
2022-09-09 13:20:19 +03:00
Proddy
2b86a79f70
Fix a bug in EmbedBuilder.Length when there is an EmbedField with no Value ( #2345 )
...
* Update EmbedBuilder.cs
Fixes a bug where 'EmbedBuilder.Length' will throw an exception of type 'System.NullReferenceException' when a field doesn't have a value.
* Update EmbedBuilder.cs
Fixed an incorrect assuption that `Value` was a `string?`
* Update EmbedBuilder.cs
Fixed one more null check
* Update EmbedBuilder.cs
Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com >
2022-09-04 06:46:50 +00:00
d4n
11ece4bf16
Update app commands regex and fix localization on app context commands ( #2452 )
...
Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com >
2022-09-03 02:47:13 +00:00
SaculRennorb
3dec99f6df
adding scheduled events to audit log ( #2437 )
...
* first draft
* made changes be actually optional. not everything always changes
* 'doc' text
* more 'doc' stuff
* more 'doc' stuff3
* 'doc' stuff
2022-09-02 21:56:19 +00:00
Discord-NET-Robot
b967e6907c
[Robot] Add missing json error ( #2447 )
...
* Add 20024, 30032, 30034, 30052, 40012, 40043, 40058, 40066, 40067, 50017, 50132, 50138, 50146, 110001, 200000, 200001, 220001, 220002, 220003, 220004, 240000 Error codes
* Update src/Discord.Net.Core/DiscordErrorCode.cs
* Apply suggestions from code review
Co-authored-by: Discord.Net Robot <robot@elons.sweatshop.stop >
Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com >
2022-09-02 21:14:16 +00:00
Armano den Boef
370bdfa3c6
Bump to Discord API v10 ( #2448 )
...
* Bump, add messagecontent intent
* Update comments
Co-authored-by: Rozen <Rozen4334@outlook.com >
2022-09-01 11:48:00 -07:00
Kuba_Z2
0aa381d468
Fix typos of word length ( #2443 )
2022-08-29 11:24:32 +02:00
Cenk Ergen
39bbd298c3
Interactions Command Localization ( #2395 )
...
* Request headers (#2394 )
* add support for per-request headers
* remove unnecessary usings
* Revert "remove unnecessary usings"
This reverts commit 8d674fe4faf985b117f143fae3877a1698170ad2.
* remove nullable strings from RequestOptions
* Add Localization Support to Interaction Service (#2211 )
* add json and resx localization managers
* add utils class for getting command paths
* update json regex to make langage code optional
* remove IServiceProvider from ILocalizationManager method params
* replace the command path method in command map
* add localization fields to rest and websocket application command entity implementations
* move deconstruct extensions method to extensions folder
* add withLocalizations parameter to rest methods
* fix build error
* add rest conversions to interaction service
* add localization to the rest methods
* add inline docs
* fix implementation bugs
* add missing inline docs
* inline docs correction (Name/Description Localized properties)
* add choice localization
* fix conflicts
* fix conflicts
* add missing command props fields to ToApplicationCommandProps methods
* add locale parameter to Get*ApplicationCommandsAsync methods for fetching localized command names/descriptions
* Apply suggestions from code review
Co-authored-by: Armano den Boef <68127614+Rozen4334@users.noreply.github.com >
* Apply suggestions from code review
Co-authored-by: Armano den Boef <68127614+Rozen4334@users.noreply.github.com >
* Update src/Discord.Net.Core/Entities/Guilds/IGuild.cs
Co-authored-by: Armano den Boef <68127614+Rozen4334@users.noreply.github.com >
* add inline docs to LocalizationTarget
* fix upstream merge errors
* fix command parsing for context command names with space char
* fix command parsing for context command names with space char
* fix failed to generate buket id
* fix get guild commands endpoint
* update rexs localization manager to use single-file pattern
* Upstream Merge Localization Branch (#2434 )
* fix ci/cd error (#2428 )
* Fix role icon & emoji assignment. (#2416 )
* Fix IGuild.GetBansAsync() (#2424 )
fix the problem of not being able to get more than 1000 bans
* [DOCS] Add a note about `DontAutoRegisterAttribute` (#2430 )
* add a note about `DontAutoRegisterAttribute`
* Remove "to to" and add punctuation
Co-authored-by: MrCakeSlayer <13650699+MrCakeSlayer@users.noreply.github.com >
* fix: Missing Fact attribute in ColorTests (#2425 )
* feat: Embed comparison (#2347 )
* Fix broken code snippet in dependency injection docs (#2420 )
* Fixed markdown formatting to show code snippet
* Fixed constructor injection code snippet pointer
* Added support for lottie stickers (#2359 )
Co-authored-by: Armano den Boef <68127614+Rozen4334@users.noreply.github.com >
Co-authored-by: BokuNoPasya <49203428+1NieR@users.noreply.github.com >
Co-authored-by: Misha133 <61027276+Misha-133@users.noreply.github.com >
Co-authored-by: MrCakeSlayer <13650699+MrCakeSlayer@users.noreply.github.com >
Co-authored-by: Ge <gehongyan1996@126.com >
Co-authored-by: Charlie U <52503242+cpurules@users.noreply.github.com >
Co-authored-by: Kuba_Z2 <77853483+KubaZ2@users.noreply.github.com >
* remove unnecassary fields from ResxLocalizationManager
* update int framework guides
* remove space character tokenization from ResxLocalizationManager
Co-authored-by: Armano den Boef <68127614+Rozen4334@users.noreply.github.com >
Co-authored-by: BokuNoPasya <49203428+1NieR@users.noreply.github.com >
Co-authored-by: Misha133 <61027276+Misha-133@users.noreply.github.com >
Co-authored-by: MrCakeSlayer <13650699+MrCakeSlayer@users.noreply.github.com >
Co-authored-by: Ge <gehongyan1996@126.com >
Co-authored-by: Charlie U <52503242+cpurules@users.noreply.github.com >
Co-authored-by: Kuba_Z2 <77853483+KubaZ2@users.noreply.github.com >
2022-08-26 18:45:27 +03:00
Misha133
89a8ea161f
feat: Embed comparison ( #2347 )
2022-08-21 13:57:51 +02:00
Cenk Ergen
6da595e074
fix ci/cd error ( #2428 )
2022-08-21 13:52:57 +02:00
Gutyina Gergő
8dfe19f328
Fix placeholder length being hardcoded ( #2421 )
...
* Fix placeholder length being hardcoded
* Add docs for TextInputBuilder.MaxPlaceholderLength
2022-08-15 13:33:23 -04:00
Cenk Ergen
e551431d72
Max/Min length fields for ApplicationCommandOption ( #2379 )
...
* implement max/min length fields for ApplicationCommandOption
* fix badly formed xml comments
2022-08-03 16:44:30 +03:00
Pusheon
f17866085e
fix: Add DeleteMessagesAsync to IVoiceChannel ( #2367 )
...
Also adds remaining rate-limit information to client log.
2022-08-02 11:24:37 +02:00
Armano den Boef
902326d1f3
fix: Range of issues presented by analyzer ( #2404 )
2022-08-01 18:53:22 +02:00
CottageDwellingCat
3a37f8914c
feat: AddOptions no longer has an uneeded restriction, added AddOptions to SlashCommandOptionBuilder ( #2338 )
2022-06-02 10:12:08 -03:00
Discord-NET-Robot
18dd95442f
[Robot] Add missing json error ( #2326 )
...
* Add 50600 Error code
* Update src/Discord.Net.Core/DiscordErrorCode.cs
Co-authored-by: Discord.Net Robot <robot@elons.sweatshop.stop >
Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com >
2022-05-27 08:28:43 -03:00
Armano den Boef
712a4aea48
fix: voice perms not retaining text perms. ( #2329 )
...
* Init
* Fix switch casting as text and not as voice
* rearrange to have voice fall through the switch first
Co-authored-by: Quin Lynch <lynchquin@gmail.com >
2022-05-27 08:25:33 -03:00
d4n
d3a693ab67
feature: Add missing interaction properties ( #2325 )
2022-05-25 06:12:03 -03:00
Quin Lynch
7a07fd62e4
feature: Forum channels ( #2316 )
...
* initial implementation
* Update SocketForumChannel.cs
* rest forum channel and remove message builder for 4.x
* Update src/Discord.Net.Core/DiscordConfig.cs
Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com >
* Update src/Discord.Net.Core/Entities/Channels/IForumChannel.cs
Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com >
* Update src/Discord.Net.Core/DiscordConfig.cs
Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com >
* Update src/Discord.Net.Core/Entities/Channels/IForumChannel.cs
Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com >
* Update src/Discord.Net.Core/Entities/Channels/IForumChannel.cs
Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com >
* Update src/Discord.Net.Core/Entities/Channels/IForumChannel.cs
Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com >
Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com >
2022-05-24 02:30:25 -03:00
Armano den Boef
cea59b55ba
feature: Add Parse & TryParse to EmbedBuilder & Add ToJsonString extension ( #2284 )
...
* Add parse & tryparse to embedbuilder.
* Add tostring extension for embeds
* Modify comments
* Resolve suggestions
* Update src/Discord.Net.Rest/Extensions/StringExtensions.cs
Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com >
2022-05-18 04:57:37 -03:00
Armano den Boef
1f01881beb
feature: Add DefaultArchiveDuration to ITextChannel ( #2295 )
2022-05-18 04:51:37 -03:00
Misha133
13ccc7c997
feature: Add .With methods to ActionRowBuilder ( #2296 )
...
* Added `.With` methods to `ActionRowBuilder`
- Added `.WithButton` & `.WithSelectMenu` methods to `ActionRowBuilder`
- fixed a typo
* removed `<exception>` from methods which don't directly throw an exception
* Update src/Discord.Net.Core/Entities/Interactions/MessageComponents/ComponentBuilder.cs
* Update src/Discord.Net.Core/Entities/Interactions/MessageComponents/ComponentBuilder.cs
Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com >
2022-05-18 04:50:55 -03:00
Paulo
20ffa64525
fix: Possible NRE in Sanitize ( #2290 )
2022-05-13 13:03:45 -03:00
Quin Lynch
23656e844e
feature: Text-In-Voice ( #2269 )
...
* Initial implementation
* Remove blocking webhooks
* add safeguard for tiv
* fix tests
2022-05-09 22:57:28 -03:00
Quin Lynch
e136759073
feature: Treat warnings as errors and set warning level to 5 ( #2270 )
2022-05-09 22:56:22 -03:00
moiph
0ec8938a67
feature: Support FailIfNotExists on MessageReference ( #2283 )
...
Fixes #2282
2022-05-09 22:55:17 -03:00
Discord-NET-Robot
503e720d21
feature: add 50080 Error code ( #2272 )
...
Co-authored-by: Discord.Net Robot <robot@elons.sweatshop.stop >
2022-04-30 19:02:41 -03:00
Christoph L
0554ac2442
fix: Guarding against empty descriptions in SlashCommandBuilder/SlashCommandOptionBuilder ( #2260 )
...
* adding null/empty check for option-descriptions
* moving check to Preconditions
* docs
2022-04-28 08:49:38 -03:00
Quin Lynch
d98b3cc495
feature: V2 Permissions ( #2222 )
...
* Initial V2 permissions
* add perms-v2 attributes and properties, add deprecation messages
* add perms-v2 properties to command info classes
* add perms-v2 fields to Rest/SocketApplicationCommand entities and IApplicationCommand
* fix json name of DmPermission field
Co-authored-by: Cenngo <cenk.ergen1@gmail.com >
2022-04-28 08:47:52 -03:00
Cenk Ergen
4ce1801bdf
feature: Passing CustomId matches into contexts ( #2136 )
...
* add logic for passing the wild card captures into the context
* move concrete impl of IRouteSegmentMatch to internal
* Apply suggestions from code review
Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com >
* fix build errors
* Apply suggestions from code review
Co-authored-by: Armano den Boef <68127614+Rozen4334@users.noreply.github.com >
Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com >
Co-authored-by: Armano den Boef <68127614+Rozen4334@users.noreply.github.com >
2022-04-27 11:09:30 -03:00
Discord-NET-Robot
e1a8ecd723
[Robot] Add missing json error ( #2237 )
...
* Add 10087, 30047, 30048, 40061 Error codes
* Update src/Discord.Net.Core/DiscordErrorCode.cs
* Update src/Discord.Net.Core/DiscordErrorCode.cs
Co-authored-by: Discord.Net Robot <robot@elons.sweatshop.stop >
Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com >
2022-04-18 04:00:58 -03:00
Armano den Boef
d8757a5afa
feature: Update bans to support pagination ( #2223 )
...
* Cacheless impl
* Ignore cache impl
* Update src/Discord.Net.Core/Entities/Channels/Direction.cs
Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com >
* Update src/Discord.Net.Core/Entities/Channels/Direction.cs
Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com >
* Update src/Discord.Net.Core/Entities/Channels/Direction.cs
Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com >
* Update src/Discord.Net.Core/Entities/Guilds/IGuild.cs
Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com >
* Update src/Discord.Net.Core/Entities/Guilds/IGuild.cs
Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com >
* Update src/Discord.Net.Core/Entities/Guilds/IGuild.cs
Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com >
* Update src/Discord.Net.Core/Entities/Guilds/IGuild.cs
Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com >
* Implement xmldoc consistency
Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com >
2022-04-05 14:13:16 -03:00
Armano den Boef
e38104bb32
feature: Make bidirectional formatting optional ( #2204 )
...
* Init
* Clearing up comment on config entry.
* Update user entities to remove storage of the setting
Co-authored-by: Quin Lynch <lynchquin@gmail.com >
2022-04-04 18:21:11 -03:00
Quin Lynch
91d8fabb70
Fix: GuildPermissions.All not including newer permissions ( #2209 )
2022-03-26 10:35:25 -03:00
FeroxFoxxo
305d7f9e13
Fix: Integration model from GuildIntegration and added INTEGRATION gateway events ( #2168 )
...
* fix integration models; add integration events
* fix description on IGUILD for integration
* fix typo in integration documentation
* fix documentation in connection visibility
* removed public identitiers from app and connection
* Removed REST endpoints that are not part of the API.
* Added documentation for rest integrations
* added optional types
* Fixed rest interaction field with not being IsSpecified
2022-03-26 09:52:31 -03:00
d4n
741ed809d6
Add missing methods to IComponentInteraction ( #2201 )
2022-03-26 09:44:13 -03:00
Quin Lynch
765c0c5544
Feature: attachment description and content type ( #2180 )
2022-03-09 17:28:56 -04:00
Discord-NET-Robot
cc6918d157
Add 10065 Error code ( #2178 )
...
Co-authored-by: Discord.Net Robot <robot@elons.sweatshop.stop >
2022-03-09 16:02:08 -04:00
Quin Lynch
507a18d389
Enforce valid button styles ( #2157 )
...
Co-authored-by: CottageDwellingCat <80918250+CottageDwellingCat@users.noreply.github.com >
2022-03-02 19:24:00 -04:00
CottageDwellingCat
1fb62de14b
Support Sending Message Flags ( #2131 )
...
* Add message flags
* Add webhook message flags
2022-03-02 19:23:27 -04:00
Quin Lynch
b3370c33e2
Fix usage of CacheMode.AllowDownload in channels ( #2154 )
...
Co-Authored-By: ✨ <25006819+sabihoshi@users.noreply.github.com >
Co-authored-by: ✨ <25006819+sabihoshi@users.noreply.github.com >
2022-03-02 19:22:59 -04:00
Quin Lynch
6bf5818e72
Add IsInvitable and CreatedAt to threads ( #2153 )
...
* Add IsInvitable and CreatedAt to threads
* Update src/Discord.Net.Core/Entities/Channels/IThreadChannel.cs
Co-Authored-By: Jared L <48422312+lhjt@users.noreply.github.com >
Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com >
2022-03-02 19:22:29 -04:00