BokuNoPasya
5fb9152db3
[Feature] Add missing remove property to MemberRoleAudit ( #2675 )
...
* Adding the missing remove property to MemberRoleAudit
* fix
* Update src/Discord.Net.WebSocket/Entities/AuditLogs/DataTypes/SocketMemberRoleEditInfo.cs
Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com >
* Update src/Discord.Net.Rest/Entities/AuditLogs/DataTypes/MemberRoleEditInfo.cs
Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com >
---------
Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com >
2023-08-10 16:34:40 +03:00
José Santos Garrido
c92249702b
[Fix] GetMessagesAsync with Direction.After not working as expected #2744 ( #2745 )
...
* Fixed GetMessagesAsync with Direction.After issue #2744
* Fixed GetMessagesAsync with Direction.After issue #2744
2023-08-10 16:33:56 +03:00
Misha133
a4217154f0
[Feature] Add Role & Attachment flags ( #2720 )
...
* initial commit
* oops
* another typo -_-
* Update AttachmentFlags.cs
Made this on my phone lol
* Update AttachmentFlags.cs
* -line
2023-08-10 16:08:42 +03:00
Misha133
8cd4c1cb8e
Onboarding updates ( #2729 )
2023-08-10 16:05:03 +03:00
Misha133
9dfd4d7a41
[Fix] Updated global name not being passed to UserUpdated event ( #2726 )
...
* fix
* fix another overgisht
2023-08-10 15:41:40 +03:00
Misha133
5f580f6f1e
[Fix] Update modal's DeferAsync impl ( #2722 )
...
* initial commit
* updates
2023-08-10 15:40:54 +03:00
Misha133
df717e6b2c
[Feature] Support for the new username system ( #2696 )
...
* update a lot of stuff
* update CDN for new avatar calculation
* whoops, forgot to commit
* handle `null` values
* Remove duplicate line
Co-authored-by: Dmitry <dimson-n@users.noreply.github.com >
* updates
* Apply suggestions from code review
Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com >
* Apply suggestion
Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com >
* update `SocketThreadUSer`
---------
Co-authored-by: Dmitry <dimson-n@users.noreply.github.com >
Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com >
2023-06-27 11:11:32 -03:00
Misha133
9ddd922d2f
[Refactor] Refactor some stuff ( #2688 )
...
* fix some `internal` classes being exposed
* update xmldoc comments to use `<see langword>`
* bump library version in samples
* fix possible oversight
2023-06-27 11:11:16 -03:00
Misha133
d5ba7d25aa
initial commit ( #2666 )
2023-04-15 03:36:07 +02:00
Misha133
dff6a57a92
[Feature] Audit Log Created gateway event support ( #2627 )
...
* add event to socket client
* make `AuditLog` param optional
* Some WIP audit log changes
* api models
* moar models
* complete models
* modelsss
* forgot to push
* oh lol forgot this too
* api & rest guild method
* revert VS being VS & formatting to file scoped namespace
* socket entities
* some work eh
* moar stuff
- switched to d.net's attribute for audit log deserialization
* working socket guild updated event + reworked rest GuildInfo creation
* a bit of refactoring + new models
* +channel created
* channel updated & channel deleted
* refactor rest channel updated log + some nullable fixes
* rest channel created + deleted logs
* user banned socket log
* kick + unban
* moar log modelsssss
* fixes & 4 more log types
* overwrite logs
* role logs
* invite logs
* webhook logs
* switch to `ISocketAuditLogData` for socket log data
* emote logs
* move stuff around
* move more stuff around
* audit logs cache
* scheduled event logs
* thread logs
* command permission update audit log
* fetch scheduled event data from log
* integration audit logs
* sticker audit log data
* stage instance audit logs
* auto mod rule audit logs
* fix
* forgot couple props
* command perm updated data from options
* final automod ones
* debugging goes away :(
* merge cringe
* ...
* yup
* fix xml doc
* onboarding audit logs
* changes
---------
Co-authored-by: cat <lumitydev@gmail.com >
2023-04-15 01:13:02 +02:00
Misha133
3a8f76c4b1
[Feature] Guild Onboarding support ( #2616 )
...
* api models
* moar models
* complete models
* modelsss
* forgot to push
* oh lol forgot this too
* api & rest guild method
* revert VS being VS & formatting to file scoped namespace
* socket entities
* yup
* fix xml doc
* changes
2023-04-15 01:08:30 +02:00
Ben Reilly
84431decfd
[Fix] Don't dispose streams in DefaultRestClient ( #2652 )
...
* Duplicate file streams before sending
* Other code needs to dispose their objects
* Another resource to dispose
* Stop disposing and copying streams in SendAsync
* Fix inverted boolean check
Co-authored-by: Dmitry <dimson-n@users.noreply.github.com >
* Await results for using statement to work
---------
Co-authored-by: Dmitry <dimson-n@users.noreply.github.com >
2023-04-15 01:07:12 +02:00
Misha133
898ee56557
[Feature] Refactor SendMessageAsync & SendFile(s)Async methods & modify webhook message attachments ( #2609 )
...
* initial commit
* resolve merge conficts
* code review suggestions
2023-03-31 13:26:09 +02:00
Misha133
c950106fed
[Fix] Allow creating stickers with no description ( #2628 )
...
* fix `CreateStickerAsync` methods
* Update src/Discord.Net.Rest/Entities/Guilds/GuildHelper.cs
Co-authored-by: Dmitry <dimson-n@users.noreply.github.com >
* fix some parameter names in precontion checks
---------
Co-authored-by: Dmitry <dimson-n@users.noreply.github.com >
2023-03-31 13:24:55 +02:00
Misha133
f9c8530a89
[Feature] Default thread ratelimit in guild text channels ( #2622 )
...
* initial commit
* mocked bruh
2023-03-31 13:22:00 +02:00
Alexander Elo
529fe3d969
Support filtering audit log entries by after id ( #2620 )
...
Adds support for filtering audit log entires with GetAuditLogsAsync. Adds the ability to specify an afterId as specified on [Discord developers docs](https://discord.com/developers/docs/resources/audit-log#get-guild-audit-log ).
2023-03-31 13:21:27 +02:00
Ge
8ccc163fcd
Missing DebuggerDisplay attribute or property ( #2630 )
2023-03-31 13:19:09 +02:00
Misha133
83dfa0cea5
[Feature] Add Message property and UpdateAsync() to IModalInteraction ( #2645 )
...
* initial commit
* better (?) comments
* whoops, accidentally commited this
2023-03-31 13:15:19 +02:00
Misha133
bdd755b8cf
[Feature] Add MaxStageVideoChannelUsers property to IGuild ( #2648 )
2023-03-31 13:14:24 +02:00
Misha133
2112e1f5b6
[Feature] New discord features ( #2649 )
2023-03-31 13:13:58 +02:00
Misha133
abfa8d1751
Missing invite properties ( #2615 )
2023-02-27 14:06:58 +01:00
Misha133
76bb9018c4
[Feature] Text-In-Stage support & missing IVoiceChannel properties ( #2610 )
...
* initial commit
* add a check for voice/stage channels in `PinAsync`
* moar refactoring
* Update IStageChannel.cs
* forgot about mocked. again.
2023-02-26 20:55:23 +01:00
Ge
ee617d8ef3
Fix typos in comments and documentation ( #2608 )
...
* Fix typos in comments and documentations
* Fixes more typo
2023-02-26 20:49:16 +01:00
Misha133
709364aaef
AutoMod custom block message ( #2613 )
2023-02-26 20:47:13 +01:00
Misha133
673b02dd36
[Feature] AutoMod support ( #2578 )
...
* initial implementation
* update models
* somewhat working auto mod action executed event
* made some properties optional
* comments, rest entity, guild methods
* add placeholder methods
* started working on rule cache
* working events
* started working on rule builder
* working state
* fix null issue
* commentsssss
* public automod rules collection in a socketgulild
* forgot nullability
* update limits
* add Download func to cacheable user
* Apply suggestions from code review
* Update src/Discord.Net.Rest/DiscordRestApiClient.cs
* missing xml doc
* reworkkkk
* fix the `;` lol
---------
Co-authored-by: Quin Lynch <lynchquin@gmail.com >
Co-authored-by: Casmir <68127614+csmir@users.noreply.github.com >
2023-02-16 17:08:47 +01:00
NaN
257f246d1d
Format the project with 'dotnet format' ( #2551 )
...
* Sync and Re-Format
* Fix Title string.
* Fix indentation.
2023-02-13 18:45:59 +01:00
Misha133
bb056dfec0
[Feature] Follow news channels ( #2590 )
...
* initial commit
* Apply suggestions from code review
---------
Co-authored-by: Casmir <68127614+csmir@users.noreply.github.com >
2023-02-09 16:45:04 +01:00
Misha133
b085621ca6
[Feature] Thread user member & thread members pagination ( #2580 )
...
* initial commit
* return & update old method
* mark old method as obsolete
2023-02-09 12:37:26 +01:00
Misha133
75f3c91f9a
IIntegrationChannel & create webhooks in forums ( #2582 )
2023-02-09 12:36:35 +01:00
Misha133
0998285f83
[Feature] Rework Thread property of a message ( #2579 )
...
* move `Thread` property to `IUserMessage` & add one to `SocketUserMessage`
* get channel from cache instead of creating new object
* move the property back to IMessage
2023-02-06 18:35:09 +01:00
Misha133
1e21a6ed4a
[Feature] Add missing VoiceChannel properties ( #2573 )
...
* add missing properties
* forgot about `MockedVoiceChannel`
2023-02-06 13:25:59 +01:00
Misha133
7d8d6ec1a6
[Feature] Add support for Guild Member Flags ( #2571 )
...
* implement `GuildUserFlags`
Co-authored-by: Casmir <68127614+csmir@users.noreply.github.com >
2023-01-23 19:44:34 +01:00
Misha133
94996e7331
Remove outdated checks ( #2561 )
2023-01-21 11:54:25 +01:00
Misha133
a3ee8555c6
[Feature] Add new message types & error codes ( #2562 )
...
* Add new message types & error codes
* add role subscription system channel flags and message property
2023-01-21 11:50:57 +01:00
Misha133
7c535b952a
[Feature] add missing invite guild properties & welcome screen support ( #2510 )
...
* added models
* working getter for welcome screen
* <see langword="null"/>
* more changes
* modify welcome screen support
* fix some typos & remove `using` added by VS
* Working-ish state
* Resolve some reviews
* change access modifier
* forgot to add docs
* revert to InviteGuild & extend it
* resolve some reviews
* Apply suggestions from code review
Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com >
Co-authored-by: Cenk Ergen <57065323+Cenngo@users.noreply.github.com >
Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com >
2022-12-25 17:40:05 +03:00
Misha133
48fb1b5df4
[Feature] Selects v2 support ( #2507 )
...
* Initial support for new select types
* Merge branch 'dev' of https://github.com/discord-net/Discord.Net into dev
* some component&action row builder additions
* remove redundant code
* changes1
* maybe working rest part?
* working-ish state?
* fix some xml docs & small rework
* typos
* fix `ActionRowBuilder`
* update DefaultArrayComponentConverter to accomodate new select-v2 types
* now supports dm channels in channel selects
* add a note to IF docs
* add notes about nullable properties
* <see langword="null"/>
* update Modal.cs
Co-authored-by: cat <lumitydev@gmail.com >
Co-authored-by: Cenngo <cenk.ergen1@gmail.com >
2022-12-25 13:41:15 +01:00
Misha133
a53f1dfa58
fix CreatePost methods for IForumChannel ( #2541 )
2022-12-23 14:56:00 +01:00
Misha133
56b1a930e7
[Feature] Age restricted (NSFW) application commands support ( #2531 )
...
* add `nsfw` to data model & internal methods; add missing property
* add `nsfw` prop to command builders
* add `NsfwCommandAttribute` to Interaction Framework
* working state
* docs?
2022-12-20 01:00:56 +03:00
BokuNoPasya
25cfb8822f
Add SendFiles to UserExtensions ( #2509 )
...
* Add SendFiles to UserExtensions
* fix Build
2022-12-14 03:00:59 -04:00
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
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
Bob
65b98f8b12
Update xmldocs to reflect the ConnectedUsers split ( #2418 )
2022-08-15 13:34:17 -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
d4n
1eb42c6128
fix: Issues related to absence of bot scope ( #2352 )
2022-08-03 11:17:43 +02:00
Alex Thomson
ba02416421
fix: DisconnectAsync not disconnecting users ( #2346 )
2022-08-02 11:26:34 +02:00
Armano den Boef
902326d1f3
fix: Range of issues presented by analyzer ( #2404 )
2022-08-01 18:53:22 +02:00
d4n
35db22e527
feat: Add support for attachments on interaction response type 7 ( #2336 )
...
* Add support for attachments on interaction response type 7
* Add missing checks
2022-06-02 10:19:28 -03:00
Quin Lynch
7adf516b20
fix: Disable TIV restrictions for rollout of TIV ( #2342 )
2022-06-02 10:18:27 -03:00