Commit Graph

3511 Commits

Author SHA1 Message Date
Quin Lynch
e1f9b768ae fix: NRE with Cacheable.DownloadAsync() (#2331) 2022-05-27 08:25:17 -03:00
d4n
d3a693ab67 feature: Add missing interaction properties (#2325) 2022-05-25 06:12:03 -03:00
Quin Lynch
2c428600b0 meta: fix target errors 2022-05-24 05:16:13 -03:00
Quin Lynch
1fadb71204 Merge branch 'dev' of https://github.com/discord-net/Discord.Net into dev 2022-05-24 02:56:28 -03:00
Quin Lynch
ac3b1a4f89 meta: 3.7.0 2022-05-24 02:56:21 -03:00
Quin Lynch
88f6168eeb fix: NRE with bot scope and user parameters (#2320) 2022-05-24 02:47: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
ShineSyndrome
aae549a976 fix: typo in modal section of docs (#2318) 2022-05-24 02:29:42 -03:00
sabihoshi
f47f3190d0 fix: Use IDiscordClient.GetUserAsync impl in DiscordSocketClient (#2319) 2022-05-24 02:29:16 -03:00
Tripletri
54a5af7db4 fix: Upload file size limit (#2313) 2022-05-23 03:43:38 -03:00
Quin Lynch
437c8a7f43 Update README.md 2022-05-22 08:05:05 -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
a24dde4b19 feature: optional API calling to RestInteraction (#2281)
* Take 2

* Expose channel & guild Id for manual calling

* Make api calling optional at runtime

* Resolve build errors

* Bind runtime option to interaction type

* Expose methods to get channel & guild from API

* Patch out NRE's, test on all int types
2022-05-18 04:56:57 -03:00
Misha133
20bd2e9e2f [Docs] Autocomplete examples (#2288)
* Improved example in int.framework intro

* Added example to `autocompletion`

* modified example to utilise user's input

* added case insensetive matching; mentioned that 25 suggestions is an API limit
2022-05-18 04:52:38 -03:00
Cenk Ergen
b465d609f0 fix: Application commands are disabled to everyone except admins by default (#2293) 2022-05-18 04:52:14 -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
Armano den Boef
6d21e42ddf Replace Project- with PackageReference on samples. (#2297)
* Init

* Resolve errors
2022-05-18 04:49:21 -03:00
Armano den Boef
725d2557dd fix: close-stage bucketId being null (#2299) 2022-05-18 04:48:34 -03:00
Jeroen Heijster
e35fbedc0a Fixed typos. (#2300) 2022-05-18 04:48:10 -03:00
Raiden Shogun
442fea1340 Added IAttachment to docs#2302) 2022-05-18 04:47:55 -03:00
Armano den Boef
94a37156f3 Resolve NRE at get audit for Deleted User (#2304) 2022-05-18 04:47:23 -03:00
Cenk Ergen
6fbd396832 Add Nullable ComponentTypeConverter and TypeReader (#2307)
* add nullable ComponentTypeConverter and TypeReader

* add converter and reader to interactionservice
2022-05-18 04:45:18 -03:00
Nhea
b333de2237 feature: add UpdateAsync to SocketModal (#2289) 2022-05-13 21:59:38 -03:00
openmilk
b0a3b65bc0 feature: Webhook support for threads (#2291)
* Added thread support to webhooks

Added thread support to delete/send messages for webhooks

* Revert "Added thread support to webhooks"

This reverts commit c45ef389c5df6a924b6ea5d46d5507386904f965.

* read added threads as im a dummy

* fixed formating

* Fixed modify EmbedMessage
2022-05-13 19:28:46 -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
Nikita Petko
5546c705ca Remove old url reference in Discord.Net.nuspec (#2286)
Change organization name within Nuget manifest from RogueException to discord-net. 

If there’s any other ones I missed, please point it out to me.
2022-05-09 01:50:26 -03:00
Quin Lynch
6470c64b2d Update FUNDING.yml 2022-05-01 14:30:42 -03:00
Quin Lynch
2f58ddc6a0 meta: 3.6.1 2022-04-30 19:06:23 -03:00
Quin Lynch
f2bb55e804 fix: null user on interaction without bot scope (#2271) 2022-04-30 19:02:57 -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
Cenk Ergen
0d74c5cc62 fix: Implement fix for Custom Id Segments NRE (#2274) 2022-04-29 22:37:22 -03:00
Cenk Ergen
a8f607553b fix: Permissions v2 Invalid Operation Exception (#2267)
* implement fix

* implement fix
2022-04-29 11:53:14 -03:00
Quin Lynch
27226f0839 meta: 3.6.0 2022-04-28 12:27:29 -03:00
Armano den Boef
9bd088f9b9 [Docs] Adding permission docs for interaction framework (#2265)
* Get rid of mediatrsample sln

* Add framework perms doc

* Append suggestion

Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com>

* Append suggestion

Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com>
2022-04-28 12:21:00 -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
Cenk Ergen
f5dbb95610 docs: Interaction Service Perms-v2 docs (#2263)
* add perms v2 docs

* add perms v2 docs
2022-04-28 08:48:37 -03:00
Ge
2b49322a54 docs: Fix TextCommands reference in first-bot.md (#2264) 2022-04-28 08:48:11 -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
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