4020 Commits

Author SHA1 Message Date
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
Diego-VP20
26c1a7e80f docs: Add files to the parameters (#2244) 2022-04-27 11:08:07 -03:00
Alex Thomson
275b833205 Fix browser property (#2254) 2022-04-27 11:07:35 -03:00
Quin Lynch
f2d383c955 remove extra header from readme 2022-04-27 10:59:50 -03:00
Misha133
18f001e37b [DOCS] Group commands example (#2246)
* add Group Command Examples to int_framework intro

* update subcommad group's name

* added some comments t othe example code

* fixed naming

* added spaces in comments
2022-04-22 07:26:54 -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
Denis Voitenko
42c65bc879 Typo in comment (#2242) 2022-04-18 03:56:32 -03:00
Alex Thomson
daba58cdd4 Fix SocketGuild not returning the AudioClient (#2248) 2022-04-18 03:52:32 -03:00
MrCakeSlayer
8eec6a00ac Fix log severity mapping for guide sample (#2249) 2022-04-18 03:51:40 -03:00
Quin Lynch
9992874703 meta: 3.5.0 2022-04-05 16:21:33 -03:00
Quin Lynch
d3a532f013 update build overrides url 2022-04-05 15:20:57 -03:00
Duke
53ab9f3b16 MediatR Guide + sample (#2218)
* Add guide for MediatR

* Add sample for MediatR

* Fix exposed token in program.cs

* Fix review points

* Remove newline in MediatrDiscordEventListener.cs
2022-04-05 14:18:25 -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
clarotech
d1cf1bf02d Correct minor typo (#2228) 2022-04-05 14:12:06 -03:00
Quin Lynch
bfd0d9bede fix: GuildMemberUpdated cacheable before entity incorrect (#2225) 2022-04-04 19:17:18 -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
TricolorHen061
0439437a65 Fix small typo in modal example (#2216) 2022-04-04 18:20:09 -03:00
Quin Lynch
ce410513f4 feature: build overrides (#2212)
* add build overrides

* override docs

* add server submodule

* add overrides to build step

* remove testing api url

Co-Authored-By: Quahu <quahuu@gmail.com>

Co-authored-by: Quahu <quahuu@gmail.com>
2022-04-04 18:19:44 -03:00
Armano den Boef
8522447c27 Fix gateway interactions not running without bot scope. (#2217)
* Init

* Implement public channelId
2022-04-04 18:16:13 -03:00
Armano den Boef
a744948477 feature: Global interaction post execution event. (#2213)
* Init

* Variable set to event

* Put internal above private

* Revert "Put internal above private"

This reverts commit 77784f001faa58a90edf34edc195d6942ba9b451.

* Revert "Variable set to event"

This reverts commit 2b0cb81d76e2150a8d692028486aa1d402efe8a3.

* Revert "Init"

This reverts commit 9892ce7b51d8cf2952d4ae5b67f4a2e4c7917ae2.

* Potentially improved approach
2022-04-04 18:14:36 -03:00
Cenk Ergen
d2118f02fb Adds a action delegate parameter to RespondWithModalAsync<T>() for modifying the modal (#2226)
* add modifyModal deleagate parameter to RespondWithModalAsync extension method

* change the position of the new parameter to avoid introducing a breaking change
2022-04-04 18:11:54 -03:00
Cenk Ergen
1c680db2ba add respondwithmodal methods to restinteractinmodulebase (#2227) 2022-04-04 18:11:15 -03:00
Armano den Boef
c4131cfc8b Fix: ShardedClients not pushing PresenceUpdates (#2219) 2022-03-31 16:24:36 -03:00
Quin Lynch
73399459ea feature: add a way to remove type readers from the interaction/command service. (#2210)
* Add remove methods

* add inline docs

Co-authored-by: Cenngo <cenk.ergen1@gmail.com>
2022-03-26 16:21:26 -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
KeylAmi
d656722bd9 Fix: modal response failing (#2187)
* Update bugreport.yml

* Update bugreport.yml

removed d.net reference. fixed spelling.

* Update bugreport.yml

Adjusted verbiage for clarity

* Fix for modal response failing

Credit to @Cenggo for finding issue.
2022-03-26 09:46:33 -03:00
Armano den Boef
d48a7bd348 Fix: serialization error on thread creation timestamp. (#2188) 2022-03-26 09:45:54 -03:00
d4n
741ed809d6 Add missing methods to IComponentInteraction (#2201) 2022-03-26 09:44:13 -03:00
Armano den Boef
82473bce69 Update GuildMemberUpdated comment regarding presence (#2193) 2022-03-26 09:43:16 -03:00
Robin Sue
d5342e4585 Fix Serilog Level Mapping (#2202) 2022-03-26 09:42:07 -03:00
Armano den Boef
47de5a2fb4 Greatly reduce code complexity & make IF samples functional (#2205)
* Greatly reduce code complexity

* Fixes sharded client IF implementation
2022-03-26 09:37:30 -03:00
Raiden Shogun
c286b9978e Fixed typo (#2206)
`await arg2.Interaction.RespondAsync("Command exception: {arg3.ErrorReason}");` would never have showed the `ErrorReason` because a `$` was missing before the string.
2022-03-26 09:33:21 -03:00
Quin Lynch
fc31589056 Fix changelog formatting 2022-03-09 17:36:29 -04:00
Quin Lynch
e3fc96bc44 meta: 3.4.1 2022-03-09 17:33:25 -04:00
Quin Lynch
25aaa4948a fix: thread owner always null (#2182) 2022-03-09 17:29:24 -04:00
Quin Lynch
f8ec3c79c2 Fix/ambigiuous reference (#2181)
* fix: Ambigiuous reference when creating roles

* Update RestGuild.cs
2022-03-09 17:29:10 -04:00
Quin Lynch
765c0c5544 Feature: attachment description and content type (#2180) 2022-03-09 17:28:56 -04:00
Quin Lynch
24b7bb593a Fix: sharded client logout (#2179) 2022-03-09 17:28:46 -04:00
Cenk Ergen
fb4250b88c Feature: Component TypeConverters and CustomID TypeReaders (#2169)
* fix sharded client current user

* add custom setter to group property of module builder

* rename serilazation method

* init

* create typemap and default typereaders

* add default readers

* create typereader targetting flags

* seperate custom id readers with component typeconverters

* add typereaders

* add customid readers

* clean up component info argument parsing

* remove obsolete method

* add component typeconverters to modals

* fix build errors

* add inline docs

* bug fixes

* code cleanup and refactorings

* fix build errors

* add GenerateCustomIdString method to interaction service

* add GenerateCustomIdString method to interaction service

* add inline docs to componentparameterbuilder

* add inline docs to GenerateCustomIdStringAsync method
2022-03-09 16:10:00 -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
Brendan McShane
a5d3add1d6 Fix error with flag params. (#2165) 2022-03-03 17:20:34 -04:00
KeylAmi
48bc723f9e Update bugreport.yml (#2159)
* Update bugreport.yml

* Update bugreport.yml

removed d.net reference. fixed spelling.

* Update bugreport.yml

Adjusted verbiage for clarity
2022-03-03 17:20:02 -04:00
Armano den Boef
7262990654 Resolve complex param sample reference (#2166) 2022-03-03 17:19:25 -04:00
MrCakeSlayer
1ba96d6fbd Add configuration toggle to suppress Unknown dispatch warnings (#2162) 2022-03-02 21:30:17 -04:00
Quin Lynch
50d0000e26 meta: 3.4.0 2022-03-02 20:13:58 -04:00
Cenk Ergen
5522bc443d Create Complex Params Docs (#2160)
* create complex params docs

* Update docs/guides/int_framework/intro.md

Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com>
2022-03-02 20:02:12 -04:00
Quin Lynch
36d6ce9ec8 Unneeded build event (#2158)
Build() at the end of the command creation isn't needed. The build is done on line 34.

Co-authored-by: Cookiezzz <Cookiezzz@users.noreply.github.com>
2022-03-02 19:24:10 -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