quin lynch
3f86e61047
Added select menus
This comit addds support for select menu message components defined at https://discord.com/developers/docs/interactions/message-components#select-menus .
Added 2 new converters: InteractionConverter and MessageComponentConverter. These converters are responsible for resolving the API type given some condition.
Added new core interface for representing Interaction Data, this is used in part with the InteractionConverter to parse the data to the respective types.
Updated the way gateway converting is done with interactions. The Interaction payload was moved from the API.Gateway namespace to API, as the interaction object is not websocket specific. The socket entities no longer try to parse the interaction models data to a JToken to desterilize since the data is now parsed to the correct model by the contract resolver.
4 years ago
quin lynch
b394987d77
Added resolved entity support (untested), closes #21 . Added GetOriginalResponseAsync to SocketInteraction. Fixed a few null bugs
4 years ago
Matt Smith
ba73e9323c
fix hard coded path in csproj/documentation
4 years ago
quin lynch
5e07d3e39d
Change SocketMessage to SocketUserMessage in MessageComponent
4 years ago
quin lynch
f11109dc3d
Fix merge bugs
4 years ago
quin lynch
4d1036950f
Merge branch 'dev' into Interactions
4 years ago
quin lynch
078f11f62c
Merge branch 'dev' of https://github.com/discord-net/Discord.Net into dev
4 years ago
quin lynch
a0a341a960
meta: version bump
4 years ago
quin lynch
ad75f6cb7d
Fixed XML not being included in builds. Fixed Linq exception in SocketApplicationCommand.Update
4 years ago
Paulo
c2e87f56c0
feature: Change GuildMemberUpdate before state to cacheable ( #1863 )
* Change GuildMemberUpdate before to cacheable
* Update PresenceUpdate
4 years ago
quin lynch
da907b66cd
meta: bump version
4 years ago
quin lynch
737a400e08
Rest based fetch for interactions that are not in cache
4 years ago
quin lynch
a96f250075
meta: bump version.
4 years ago
quin lynch
e17794e58e
Update channel on SocketInteraction
4 years ago
quin lynch
b9efd98698
Closes #12 . Implemented MessageComponent to ReplyAsync
meta: bump versions from dev to minor
4 years ago
quin lynch
689c77d476
Closes #8 . Added DM support for buttons and slash commands. Added SlashCommandBuilder
4 years ago
quin lynch
6855b7909f
Merge branch 'Interactions' of https://github.com/Discord-Net-Labs/Discord.Net-Labs into Interactions
4 years ago
quin lynch
cb288ba235
Closes #11 . Added DM support for message components and slash command. Fixed incorrect author for messages
4 years ago
Paulo
fabe034daa
fix: Message update without author ( #1862 )
4 years ago
Paulo
384ad85c64
feature: Remove /users/@me call for socket and rework sharded client a bit ( #1860 )
* Remove /users/@me call for socket and rework sharded client a bit
* Remove override for login
4 years ago
Paulo
de7f9b5eff
fix: Add missing AddRef and related ( #1859 )
4 years ago
Matt Smith
1a2753d257
Addition of required library missed in merge
4 years ago
Matt Smith
f64db8b745
Merge w/ Parent Interactions branch
4 years ago
Matt Smith
69c734808d
Initial pass at making slash commands respond as expected
4 years ago
Paulo
8b29e0feb4
fix: MessageUpdated without author ( #1858 )
4 years ago
Paulo
d176fef5de
fix: Fire GuildMemberUpdated without cached user ( #1853 )
4 years ago
Paulo
a7ff6ce0ec
fix: Gateway events for DMs ( #1854 )
* Fix MessageUpdate when there's no channel cached
* Fix message events
* Fix cacheable type
* Fix examples
* Revert MessageUpdated
4 years ago
quin lynch
ad611dcafa
meta: bump patch
4 years ago
quin lynch
dbc13d58b6
Fix null ref for emotes
4 years ago
quin lynch
6203c48c11
Added documentation for all the new classes
4 years ago
quin lynch
a5d2b33bcc
meta: bump versions
4 years ago
quin lynch
18d93a2192
Closes #5 . Added message components to ModifyMessageArgs, abstracted SocketInteraction for #8
4 years ago
quin lynch
f506b98780
Closes #6 . Closes #4 . Fix emote parsing, added components to socket and rest messages.
4 years ago
quin lynch
814dd777e7
meta: bump core, rest, and websocket version
4 years ago
quin lynch
edc0bf35ae
Add components to messages
4 years ago
quin lynch
1ce712c673
meta: update package for nuget
4 years ago
quin lynch
80ab30e12f
Component alpha build!
4 years ago
quin lynch
610bafca7a
Creating Message components
4 years ago
Paulo
dfaaa21e0e
misc: Internal change to GetOrCreateUser ( #1852 )
4 years ago
Paulo
70aab6c4f6
fix: Remove obsolete methods and properties ( #1849 )
* Remove obsolete methods and properties
* Remove rest of GuildEmbed
* Remove TokenType.User
* Changes regarding the removal of the user tokentype
4 years ago
Paulo
ed8e57320a
feature: Remove obsolete sync voice regions methods and properties ( #1848 )
4 years ago
Paulo
7a201e9ff1
feature: Remove DM cache and fix references ( #1851 )
* Remove DM cache and fix references
* Move line back to where it was
4 years ago
Paulo
95bae786b8
fix: Create DM channel with id and author alone ( #1850 )
* Create DM channel with id and author alone
* Unneeded cast
4 years ago
Paulo
06a64b7877
feature: Bump API version to 9 ( #1847 )
* First changes to the config
* Lots of changes to fit the new version
* Remove PermissionTargetConverter
4 years ago
quin lynch
f368447729
Pull d.net/dev
Merged Discord.Net/dev into here
4 years ago
moiph
8afef8245c
fix: Cached message emoji cleanup at MESSAGE_REACTION_REMOVE_EMOJI ( #1835 )
MESSAGE_REACTION_REMOVE_EMOJI events were triggering REST calls by invoking `RemoveAllReactionsForEmoteAsync` instead of `RemoveReactionsForEmote`, the latter being to handle cached message state cleanup.
4 years ago
Zack Broderson
4c9910cf71
(ifcbrk) feature: Add ability to add/remove roles by id ( #1757 )
* Scaffold Add/Remove roles by id. (needs impl & docs)
* Add docs
* Add implementation
* Expose Add/Remove role endpoints
* Formatting
* Fix wrong method call
4 years ago
Paulo
365a848f7a
(ifcbrk) feature: Add ModifyMessageAsync to IMessageChannel ( #1830 )
4 years ago
NeKz
df23d57458
feature: Add GetEmotesAsync to IGuild ( #1781 )
4 years ago
Waterball
0715d7db96
Feature: Add missing property to MESSAGE_REACTION_ADD event ( #1801 )
* Add guild member property for reaction
* Use the guild member provided by the event when present
4 years ago