Commit Graph

3997 Commits

Author SHA1 Message Date
Mihail Gribkov
86680929ae [Fix] Correct IUserMessage.ModifyAsync precondition expression 2025-10-31 23:19:25 +03:00
Mihail Gribkov
80fbbc2e2b [Feature] Add modify current guild member support (#3196)
* refactors & add `ModifyCurrentUserAsync`

* i mean, it said "remove", so I removed it
2025-10-27 22:42:23 +03:00
Mihail Gribkov
dade9b2df6 Add GetRoleUserCounts REST method (#3195) 2025-10-19 19:09:19 +03:00
Mihail Gribkov
5ca29fd461 Remove unsupported SDK targets (#3193)
* yee old sdks (and CI cache too since it's pretty useless)

* also bump deps

* Update src/Discord.Net.Interactions/Discord.Net.Interactions.csproj

Co-authored-by: d4n <dan3436@hotmail.com>

* Update src/Discord.Net.Core/Discord.Net.Core.csproj

Co-authored-by: d4n <dan3436@hotmail.com>

* `.ForEachAsync` => `await foreach`

* remove old targets from .nuspec & update docs

* bump sdk in ws4net provider (probably should deprecate it tho)

---------

Co-authored-by: d4n <dan3436@hotmail.com>
2025-10-18 12:34:02 +03:00
José Santos Garrido
a468e182eb Fix voice receiving (#3190)
* Update voice API to version 8

* Fix voice receiving

* Reuse RTP Header array during decryption
2025-09-21 20:20:03 +03:00
OMEGA3065
8883596c31 Fix missing SelectMenu Type, ChannelTypes, DefaultValues in ComponentBuilder.AddComponent (#3186) 2025-09-13 17:16:02 +00:00
José Santos Garrido
927c9053e4 Update voice API to version 8 (#3183) 2025-09-03 12:45:08 +03:00
GreemDev
e61eb519bf Make Cacheable constructors public (#3177) 2025-08-30 11:52:42 +03:00
Mihail Gribkov
5273f1df98 [Feature] Add PinMessages permission (#3178) 2025-08-22 23:38:45 +03:00
Adam Gauthier
ae6e7d50b3 MessageComponent: Add better json type exception (#3176)
Currently in MessageComponentConverter, the error on unknown type is
System.ArgumentNullException: Value cannot be null. (Parameter 'target')

This is because PopulateObject() doesn't allow a null target, but we
don't have a default case on the switch statement.
2025-08-14 10:44:01 +03:00
ForceFK
ebc7db8601 Fix duplicated flag value in ActivityProperties enum (#3174) 2025-08-11 23:48:58 +03:00
Mihail Gribkov
0b078d79a9 Remove voice gateway port stripping (#3173) 2025-08-07 23:14:43 +03:00
Mihail Gribkov
fc0712da12 Bump guild batch limit to 200 (#3171) 2025-08-06 22:27:23 +03:00
Alex Thomson
9cb6ffdd17 Make ParameterChoice constructor public (#3169) 2025-07-28 20:19:19 +03:00
Mihail Gribkov
958d28636b [Fix] Incorrect casts in the legacy component builder (#3167)
* [Fix] Incorrect casts in the legacy component builder

* cringe
2025-07-20 01:53:17 +03:00
Mihail Gribkov
87c1461698 Fix release CI workflow 2025-07-20 00:27:07 +03:00
Mihail Gribkov
98e2d0fd66 Meta 3.18 (#3163) 2025-07-20 00:16:31 +03:00
Adriaan Waem
cf66ab4520 Docs/components v2 :wires: (#3162)
* new pages :3

* fimished intro page

* fimished interaction page

* remove unused shit

* I think we are done lmao

* I lied, fixed some small mistakes

* Update docs/guides/components_v2/interaction.md

Co-authored-by: Mihail Gribkov <61027276+Misha-133@users.noreply.github.com>

* misha quality assurance :3 + breakings pages

* Apply suggestions from code review

Co-authored-by: Mihail Gribkov <61027276+Misha-133@users.noreply.github.com>

* component types guide expanded

* :3

* Apply suggestions from code review

Co-authored-by: Mihail Gribkov <61027276+Misha-133@users.noreply.github.com>

---------

Co-authored-by: Mihail Gribkov <61027276+Misha-133@users.noreply.github.com>
2025-07-18 22:14:24 +03:00
GreemDev
80b4328578 Fix guild tag badge URL helper (#3161) 2025-07-15 05:20:07 +03:00
Mihail Gribkov
3fd06a3504 Fix build (#3159) 2025-07-14 01:49:22 +03:00
Mihail Gribkov
61b99ef872 Remove debug lines from .gitignore (accidental commit) 2025-07-14 01:41:17 +03:00
Mihail Gribkov
f9ba642976 [Fix] Certain global user properies not getting updated (#3158)
* yep

* fix
2025-07-14 01:39:46 +03:00
OverwrittenCode
978f999843 fix(IsLoadableModule): return false for abstract classes (#3148)
* fix(IsLoadableModule): return false for abstract classes

IsLoadableModule did not check the property TypeInfo.IsAbstract.
Therefore, an unnecessary warning log stated that it could not be loaded.

Now, if a class is abstract, it will be ignored safely and all the inheritors will continue to load any commands.

* fix: handle other attributes

Co-authored-by: Cenk Ergen <57065323+Cenngo@users.noreply.github.com>

* refactor: simplify attribute logic

* fix: correct terminology in debug message

---------

Co-authored-by: Cenk Ergen <57065323+Cenngo@users.noreply.github.com>
2025-07-13 23:22:32 +03:00
Mihail Gribkov
79b455ecf4 [Feature] User primary guild (#3156) 2025-07-13 23:22:04 +03:00
Mihail Gribkov
800a23430d [CV2] QoL & fixes (#3153) 2025-07-01 22:11:27 +03:00
Mihail Gribkov
c343ce95a5 Guild member JoinedAt nullability (#3152)
* GuildMember.JoinedAt is nullable
2025-07-01 00:18:40 +03:00
Mihail Gribkov
f18c836b5f [CV2] add children component counts to IComponentContainer (#3147) 2025-06-12 13:25:08 +03:00
ForceFK
c07c28de10 Fixed missing Type in constructor SelectMenuBuilder(SelectMenuComponent) (#3146) 2025-06-11 21:55:03 +00:00
Mihail Gribkov
6e1f9c1092 add ApproximateUserAuthorizationCount (#3145) 2025-06-12 00:41:44 +03:00
OverwrittenCode
1e5090012d fix: edge case missed (#3144)
Follow-up to https://github.com/discord-net/Discord.Net/pull/3142 (commit 0c1536d).
2025-06-11 12:13:08 +03:00
OverwrittenCode
0c1536d48a Fix overflow exception (#3142)
* refactor(TimestampTagStyles): replace ASCII integer values with character literals (#1)

* fix: validate min/max value against OverflowException
2025-06-07 12:35:36 +03:00
Daniel Willett
7a74f781ae Fixed incorrect ComponentType in TextDisplayBuilder. (#3140) 2025-06-05 22:53:17 +03:00
jiraya
dc3bd768a5 feat: support POLL_RESULT (46) in MessageType enum (#3131)
* feat: support POLL_RESULT (46) in MessageType enum

* oops
2025-06-05 22:53:08 +03:00
d4n
35d94ca32b Fix visibility of MessageComponent.Empty (#3139) 2025-05-29 00:42:09 +03:00
d4n
b338d307b6 Fix value of TextDisplayBuilder.MaxContentLength (#3138) 2025-05-28 21:36:38 +00:00
Mihail Gribkov
2b142de56c meta3.18.0-beta.3 2025-05-27 00:58:16 +03:00
Mihail Gribkov
35b493c11c Fix some CV2 oversights (#3135) 2025-05-24 22:28:35 +03:00
OverwrittenCode
e68fa50797 refactor(TimestampTagStyles): replace ASCII integer values with character literals (#1) (#3133) 2025-05-21 12:10:51 +00:00
jiraya
523212af40 fix: correct typo (#3130) 2025-05-17 13:33:13 +00:00
d4n
b1c2fcb610 Fix error when only sending components in response to interactions (#3129) 2025-05-16 08:53:31 +03:00
Robin Laevaert
9f9b093add Change comment to reflect longer polls (#3127) 2025-05-11 14:45:00 +00:00
Mihail Gribkov
5f2d173361 [Fix] Include section accessories in ComponentCount() (#3126) 2025-05-11 16:47:34 +03:00
Mihail Gribkov
56d6980aa8 Add empty constructors for containers (#3125)
* add empty ctors
2025-05-10 00:19:09 +03:00
Mihail Gribkov
5761c4848f Update CHANGELOG.md 2025-05-09 21:01:21 +03:00
Suiram1701
f1ff1913cf Ensure the required gateway intent is available when connected to audio (#3108) 2025-05-09 20:54:28 +03:00
Mihail Gribkov
be8e6e0394 Component search fixes & improvements (#3123) 2025-05-09 20:54:08 +03:00
Mihail Gribkov
57cdec70bf Fix Ids in ActionRowComponent and SelectmenuComponent (#3122) 2025-05-09 19:19:21 +03:00
Mihail Gribkov
4ab96c7721 yep (#3121) 2025-05-09 18:18:16 +03:00
Mihail Gribkov
c888c84752 use Color for container AccentColor & fix action row validation (#3120) 2025-05-09 15:01:11 +03:00
Mihail Gribkov
b72938028f Add component => builder converters (#3119) 2025-05-09 13:13:25 +03:00