Commit Graph

2704 Commits

Author SHA1 Message Date
Paulo
690bc3ff9d meta: Bump version to 3.0.0-dev (#1846) 2021-05-23 13:36:39 -03:00
Max
4b8d4441c5 feature: Add Discord Certified Moderator user flag (#1844)
This pull request adds the Discord Certified Moderator badge flag to the User Flags
PR in discord-api-docs: https://github.com/discord/discord-api-docs/pull/2946
2021-05-22 14:30:08 -03:00
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.
2021-05-08 15:45:53 -03:00
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
2021-04-29 11:34:52 -03:00
Paulo
365a848f7a (ifcbrk) feature: Add ModifyMessageAsync to IMessageChannel (#1830) 2021-04-29 11:33:39 -03:00
Playwo
5b244f215b feature: Add methods to interact with reactions without a message object (#1828) 2021-04-28 11:42:58 -03:00
Adam Gauthier
c46daaad19 fix: Add type reader when entity type reader exists (#1486)
When adding a type reader that replaces a default type reader,
CommandService checks that it replaces a type in its default type
readers or entity type readers (IMessage, IChannel, IRole, IUser). For
entity types, it checks that the target type is the same as the entity
type or it implements its type reader. Adding a type reader for a
default type reader doesn't make much sense and the original intent was
likely to check that the target type is or implements the entity type.
2021-04-28 11:30:16 -03:00
NeKz
df23d57458 feature: Add GetEmotesAsync to IGuild (#1781) 2021-04-28 11:08:56 -03:00
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
2021-04-28 10:59:31 -03:00
Waterball
6aff419edd misc: Fix spelling in SnowflakeUtils.FromSnowflake (#1800)
```diff
--- geenrated
+++ generated
```
2021-04-28 10:50:41 -03:00
Yeba
25b04c4a97 misc: Remove URI check from EmbedBuilder (#1778)
`Uri.IsWellFormedUriString()` doesn't return the expected result for specific urls, removed until the DotNet team actually resolves it ( https://github.com/dotnet/runtime/issues/21626 )
2021-04-28 10:48:15 -03:00
Desmont
f67cd8ea55 feature: Webhook message edit & delete functionality (#1753)
* feature: Webhook message edit & delete functionality

* PR fixes: Rename Edit* to Modify*; Add more detailed docstrings; Small validation fixes

* Fix spacing around docstrings

* Make ModifyWebhookMessageParams.Content Optional<string>

* Change the Webhook message edit functionality to use a object delegate method instead providing the all parameters

Co-authored-by: Desmont <desmont@users.noreply.github.com>
2021-04-28 10:15:16 -03:00
Paulo
91a906397a feature: Add stickers (#1726) 2021-04-28 10:11:28 -03:00
Paulo
c21cf48be3 meta: Bump version to 2.4.0-dev (#1827) 2021-04-28 10:03:30 -03:00
Paulo
1b64d19c84 meta: 2.3.1 (#1795) 2021-03-10 16:59:38 -03:00
Paulo
d41aeee4fe fix: Audit log UserId can be null (#1794) 2021-03-10 16:50:14 -03:00
Alex Gravely
d2518db9a8 fix: Update Webhook ChannelId from model change (#1791) 2021-03-10 16:22:00 -03:00
Paulo
51b7afe2a6 misc: Add remark regarding CustomStatus as the activity (#1774)
* Throw exception with CustomStatus

* Add remark instead of exception

* Change wording
2021-03-10 16:07:31 -03:00
NeKz
f794163ffa fix: NullReferenceException in pin/unpin audit logs (#1780) 2021-03-10 16:07:19 -03:00
NeKz
6ac5ea1cbb fix: Add ChannelType property to ChannelInfo audit log (#1786) 2021-03-10 14:50:48 -03:00
Antonio Zdravkov Nikolov
0fc713a897 fix: Private methods aren't added as commands (#1773)
Fix breaking change introduced by #1521
2021-02-09 21:04:32 -03:00
Yeba
73e5cc2fbc fix: Deadlock in DiscordShardedClient when Ready is never received (#1761)
* fixed a deadlock in DiscordShardedClient during a failed Identify due to InvalidSession

* fixed log

* Don't wait ready before releasing semaphore

Co-authored-by: Paulo <pnmanjos@hotmail.com>
2021-01-31 03:13:09 -03:00
Paulo
83e88f4fb9 meta: Bump version to 2.3.1-dev 2021-01-30 23:40:33 -03:00
Paulo
6bb54577ab meta: 2.3.0 2021-01-28 19:13:18 -03:00
Paulo
2095701665 fix: Missing MessageReference when sending files 2021-01-21 18:08:46 -03:00
quinchs
8b25c9bbfb feature: Add GuildUser IsPending property (#1731)
* Implemented Pending property

* Implemented changes
2020-12-23 12:47:54 -03:00
Paulo
225550dc5a feature: Add MessageFlags and AllowedMentions to message modify (#1724)
* feature: Add MessageFlags and AllowedMentions to Modify

* Change exception message
2020-12-23 12:47:20 -03:00
Paulo
c683b2901d feature: Add user public flags (#1722) 2020-12-23 12:46:42 -03:00
Paulo
6a62c4770c feature: Add role tags (#1721) 2020-12-23 12:46:27 -03:00
Paulo
5934c7949a misc: VoiceRegions and related changes (#1720) 2020-12-23 12:46:12 -03:00
Paulo
4a7f8fec93 fix: Move and fix internal AllowedMentions object (#1727) 2020-12-20 07:37:32 -03:00
Paulo
a4d32d366d fix: IMessage.Embeds docs remarks 2020-12-20 07:09:44 -03:00
Fyers
dd2e524ff9 fix: Invite and InviteMetadata properties (#1639)
* fixes #1495

* keep obsolete properties and return types for compatibility

* missing properties for SocketInvite

* Restore xml docs and change obsolete message

Co-authored-by: Paulo <pnmanjos@hotmail.com>
2020-12-19 11:39:09 -03:00
Still Hsu
2cd1880228 docs: Add minor tweaks to DiscordSocketConfig docs strings 2020-12-14 12:18:58 +08:00
Still Hsu
e31cdc7586 docs: Fix MaxWaitBetweenGuildAvailablesBeforeReady docs string
Signed-off-by: Still Hsu <dev@stillu.cc>
2020-12-14 12:07:24 +08:00
Still Hsu
e0f8737c35 Add initial StyleCops style enforcement 2020-12-14 12:00:53 +08:00
Still Hsu
833ee42a1f Cleanup GatewayReconnectException docs 2020-12-14 11:59:33 +08:00
Still Hsu
13a41f8754 Mark null as a specific langword in summary 2020-12-14 11:59:32 +08:00
Still Hsu
62539f0391 Move bulk deletes remarks from <summary> to <remarks> 2020-12-14 11:59:32 +08:00
Still Hsu
9ea3291ef1 Resolve inheritdocs warning 2020-12-14 11:59:32 +08:00
Daniel Baynton
47f571ef1c fix: SocketGuild.HasAllMembers is false if a user left a guild (#1683)
* Fix: HasAllMembers is false if a user left

* Fix: Correct boolean logic
2020-12-14 03:55:03 +00:00
vrachv
aacfea05ea feature: Add max bitrate value to SocketGuild
* Update SocketGuild.cs

* Fix returns value docs

Signed-off-by: Still Hsu <dev@stillu.cc>

Co-authored-by: Still Hsu <dev@stillu.cc>
2020-12-14 03:54:31 +00:00
Joel Liechti
e385c40fc7 docs: Update summary of SocketVoiceChannel.Users (#1714)
The inherited summary incorrectly stated that all users who _see_ the channel are returned when in reality only the ones _connected_ are.
2020-12-14 03:42:04 +00:00
Paulo
9d7cb39faa fix: Rollback Activities to Game (#1702) 2020-12-01 02:47:20 -03:00
Paulo
1e9b252e64 fix: Wrong author for SocketUserMessage.ReferencedMessage 2020-11-29 21:18:52 -03:00
Paulo
5ed01a30b6 fix: UserMentions throwing NullRef 2020-11-26 14:30:58 -03:00
Paulo
5213916903 fix: Possible NullReferenceException when receiving InvalidSession (#1695) 2020-11-25 14:27:26 -03:00
Paulo
e3850e1e8f feature: Add inline replies (#1659)
* Add inline replies

* Missed a few things

* Change xml docs, IUserMessage, and other changes

* Missed one when changing

* Fix referencedMessage author
2020-11-22 00:43:38 -03:00
Paulo
25d5d36772 feature: Send presence on Identify payload (#1688)
* Send presence on identify

* Change CurrentUser presence
2020-11-22 00:42:48 -03:00
Paulo
ec673e1863 feature: Implement gateway ratelimit (#1537)
* Implement gateway ratelimit

* Remove unused code

* Share WebSocketRequestQueue between clients

* Add global limit and a way to change gateway limits

* Refactoring variable to fit lib standards

* Update xml docs

* Update xml docs

* Move warning to remarks

* Remove specific RequestQueue for WebSocket and other changes

The only account limit is for identify that is dealt in a different way (exclusive semaphore), so websocket queues can be shared with REST and don't need to be shared between clients anymore.

Also added the ratelimit for presence updates.

* Add summary to IdentifySemaphoreName

* Fix spacing

* Add max_concurrency and other fixes

- Add session_start_limit to GetBotGatewayResponse
- Add GetBotGatewayAsync to IDiscordClient
- Add master/slave semaphores to enable concurrency
- Not store semaphore name as static
- Clone GatewayLimits when cloning the Config

* Add missing RequestQueue parameter and wrong nullable

* Add RequeueQueue paramater to Webhook

* Better xml documentation

* Remove GatewayLimits class and other changes

- Remove GatewayLimits
- Transfer a few properties to DiscordSocketConfig
- Remove unnecessary usings

* Remove unnecessary using and wording

* Remove more unnecessary usings

* Change named Semaphores to SemaphoreSlim

* Remove unused using

* Update branch

* Fix merge conflicts and update to new ratelimit

* Fixing merge, ignore limit for heartbeat, and dispose

* Missed one place and better xml docs.

* Wait identify before opening the connection

* Only request identify ticket when needed

* Move identify control to sharded client

* Better description for IdentifyMaxConcurrency

* Add lock to InvalidSession
2020-11-18 23:40:09 -03:00