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>
3 years ago
Armano den Boef
8522447c27
Fix gateway interactions not running without bot scope. ( #2217 )
* Init
* Implement public channelId
3 years ago
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 77784f001f
.
* Revert "Variable set to event"
This reverts commit 2b0cb81d76
.
* Revert "Init"
This reverts commit 9892ce7b51
.
* Potentially improved approach
3 years ago
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
3 years ago
Cenk Ergen
1c680db2ba
add respondwithmodal methods to restinteractinmodulebase ( #2227 )
3 years ago
Armano den Boef
c4131cfc8b
Fix: ShardedClients not pushing PresenceUpdates ( #2219 )
3 years ago
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>
3 years ago
Quin Lynch
91d8fabb70
Fix: GuildPermissions.All not including newer permissions ( #2209 )
3 years ago
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
3 years ago
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.
3 years ago
Armano den Boef
d48a7bd348
Fix: serialization error on thread creation timestamp. ( #2188 )
3 years ago
d4n
741ed809d6
Add missing methods to IComponentInteraction ( #2201 )
3 years ago
Armano den Boef
82473bce69
Update GuildMemberUpdated comment regarding presence ( #2193 )
3 years ago
Robin Sue
d5342e4585
Fix Serilog Level Mapping ( #2202 )
3 years ago
Armano den Boef
47de5a2fb4
Greatly reduce code complexity & make IF samples functional ( #2205 )
* Greatly reduce code complexity
* Fixes sharded client IF implementation
3 years ago
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.
3 years ago
Quin Lynch
fc31589056
Fix changelog formatting
3 years ago
Quin Lynch
e3fc96bc44
meta: 3.4.1
3 years ago
Quin Lynch
25aaa4948a
fix: thread owner always null ( #2182 )
3 years ago
Quin Lynch
f8ec3c79c2
Fix/ambigiuous reference ( #2181 )
* fix: Ambigiuous reference when creating roles
* Update RestGuild.cs
3 years ago
Quin Lynch
765c0c5544
Feature: attachment description and content type ( #2180 )
3 years ago
Quin Lynch
24b7bb593a
Fix: sharded client logout ( #2179 )
3 years ago
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
3 years ago
Discord-NET-Robot
cc6918d157
Add 10065 Error code ( #2178 )
Co-authored-by: Discord.Net Robot <robot@elons.sweatshop.stop>
3 years ago
Brendan McShane
a5d3add1d6
Fix error with flag params. ( #2165 )
3 years ago
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
3 years ago
Armano den Boef
7262990654
Resolve complex param sample reference ( #2166 )
3 years ago
MrCakeSlayer
1ba96d6fbd
Add configuration toggle to suppress Unknown dispatch warnings ( #2162 )
3 years ago
Quin Lynch
50d0000e26
meta: 3.4.0
3 years ago
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>
3 years ago
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>
3 years ago
Quin Lynch
507a18d389
Enforce valid button styles ( #2157 )
Co-authored-by: CottageDwellingCat <80918250+CottageDwellingCat@users.noreply.github.com>
3 years ago
Quin Lynch
c80067425a
Display name support for enum type converter ( #2156 )
* Display name support for enum type converter
* allow display attribute on enum type converter
* update docs/examples to include enum Display sample
* Revert "allow display attribute on enum type converter"
This reverts commit a0eec5b755
.
* adds ChoiceDisplay for enum type converters
* Update EnumChoiceAttribute.cs
* fix renamed folder issue
* fix namespace
Co-authored-by: Xeno <eliotd@gmail.com>
3 years ago
Quin Lynch
9ba64f62d1
Interaction Service Complex Parameters ( #2155 )
* Interaction Service Complex Parameters
* add complex parameters
* add complex parameters
* fix build errors
* add argument parsing
* add nested complex parameter checks
* add inline docs
* add preferred constructor declaration
* fix autocompletehandlers for complex parameters
* make GetConstructor private
* use flattened params in ToProps method
* make DiscordType of SlashParameter nullable
* add docs to Flattened parameters collection and move the GetComplexParameterCtor method
* add inline docs to SlashCommandParameterBuilder.ComplexParameterFields
* add check for validating required/optinal parameter order
* implement change requests
* return internal ParseResult as ExecuteResult
Co-Authored-By: Cenk Ergen <57065323+Cenngo@users.noreply.github.com>
* fix merge errors
Co-authored-by: Cenk Ergen <57065323+Cenngo@users.noreply.github.com>
3 years ago
CottageDwellingCat
1fb62de14b
Support Sending Message Flags ( #2131 )
* Add message flags
* Add webhook message flags
3 years ago
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>
3 years ago
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>
3 years ago
Quin Lynch
1dc473c7e4
Add Image property to Guild Scheduled Events ( #2151 )
* Add Image property to create and modify events
* Add CDN routes to get cover image
* Update banner names
* Update CDN.cs
* Update IGuildScheduledEvent.cs
3 years ago
Discord-NET-Robot
202554fdde
[Robot] Add missing json error ( #2152 )
* Add 30046, 40004, 40060, 50068, 50086 Error codes
* 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>
3 years ago
Quin Lynch
5594739135
Clarify Users property on SocketGuildChannel ( #2149 )
3 years ago
EpicOfficer
8bcd3da9e4
Add self_video to VoiceState ( #2137 )
* Add self_video to VoiceState
* Update selfVideo flag
3 years ago
Cenk Ergen
3e52fab67b
Add return statement to precondition handling ( #2062 )
3 years ago
Armano den Boef
a13dce2550
FAQ rework, replacing outdated info, better interaction FAQ ( #2106 )
* FAQ rework, replacing outdated info, better interaction faq
* Update docs/faq/basics/getting-started.md
Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com>
* Update docs/faq/basics/getting-started.md
Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com>
* Update docs/faq/int_framework/general.md
Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com>
* fix TOC reference
Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com>
Co-authored-by: Quin Lynch <lynchquin@gmail.com>
3 years ago
Ilay Nahman
b7f6db96ef
Fix docs typos ( #2119 )
Changed frist to first and dont to don't
3 years ago
Duke
1fc07e742f
Guides for Serilog and EFCore ( #2134 )
* Add serilog guide
* added suggestions from Rozen
* Add efcore guide
* Fix review changes
* Fix grammatical errors & review points
3 years ago
Almighty-Shogun
7d8911bfed
Fixed documentation typo's ( #2127 )
* Fixed typo at line 39
On this code example for the documentation there was a typo on the README.md file at line 39. There was an `;` where there should not be one.
The code that had the typo:
```cs
var tb = new TextInputBuilder()
.WithLabel("Labeled")
.WithCustomId("text_input")
.WithStyle(TextInputStyle.Paragraph)
.WithMinLength(6); // This ";" does not belong here.
.WithMaxLength(42)
.WithRequired(true)
.WithPlaceholder("Consider this place held.");
```
* Changed `ExecuteAsync` to `ExecuteCommandAsync`
`_interactionService.ExecuteAsync(ctx, serviceProvider);` cannot be executed because the method `ExecuteAsync` does not exists.
* Changed `componBuild()` to `components.Build()`
3 years ago
d4n
f601e9bc34
Fix context menu comand message type ( #2128 )
3 years ago
CottageDwellingCat
b95b94231c
Fix NRE when ratelimmited requests don't return a body ( #2135 )
3 years ago
sabihoshi
553055b724
feat: Add FromDateTimeOffset in TimestampTag ( #2146 )
3 years ago
Quin Lynch
a1cfa41953
Fix stream access exception when ratelimited ( #2117 )
3 years ago