Commit Graph

3274 Commits

Author SHA1 Message Date
Nikon
3395700720 feature: IVoiceChannel implements IMentionable (#1896) 2021-08-22 18:00:18 -03:00
Quin Lynch
c200861585 fix: Add default avatar to WithAuthor extension (#1890)
Adds `??  user.GetDefaultAvatarUrl()` to the avatar icon field.
2021-07-10 11:44:32 -03:00
Wardog
c5b4b645b8 feature: Add Name property to Teams (#1879) 2021-07-10 11:42:45 -03:00
th0mk
8349cd7e1e fix: Change embed description max length to 4096 (#1886)
* Update max embed description length (fixes #1881)

* Update unit tests for new embed builder length
2021-07-10 11:40:52 -03:00
Paulo
22bb1b02dd fix: Rest message type (#1877) 2021-06-17 20:59:40 -03:00
Paulo
ac52a11d89 fix: Message type (#1876)
* Fix message type

* Remove type from system entity
2021-06-17 20:17:03 -03:00
Paulo
7cf84995b2 fix: Remove OperationCanceledException handling in connecting logic (#1873) 2021-06-15 16:45:15 -03:00
Paulo
2336b98622 misc: Remove docs build from azure pipelines 2021-06-15 13:57:09 -03:00
Paulo
97d90b9e8a fix: Connection deadlock when trying to Send and Disconnect (#1872) 2021-06-15 13:32:17 -03:00
Paulo
f47001a1c9 fix: Add empty role list if not present (#1871) 2021-06-12 16:31:01 -03:00
Paulo
08507c0603 fix: ApiClient.CurrentUser being null (#1864) 2021-06-01 11:14:55 -03:00
Paulo
c2e87f56c0 feature: Change GuildMemberUpdate before state to cacheable (#1863)
* Change GuildMemberUpdate before to cacheable

* Update PresenceUpdate
2021-05-30 15:53:18 -03:00
Hitmasu
125f6c7862 docs: use async main
* Removed text async

* Updated code

* Added main as proxy task
2021-05-29 22:25:58 +09:00
Paulo
fabe034daa fix: Message update without author (#1862) 2021-05-28 22:25:04 -03:00
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
2021-05-28 18:40:39 -03:00
Paulo
de7f9b5eff fix: Add missing AddRef and related (#1859) 2021-05-28 18:00:31 -03:00
Paulo
8b29e0feb4 fix: MessageUpdated without author (#1858) 2021-05-28 13:39:38 -03:00
Paulo
d176fef5de fix: Fire GuildMemberUpdated without cached user (#1853) 2021-05-28 10:09:21 -03:00
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
2021-05-28 10:09:05 -03:00
Paulo
dfaaa21e0e misc: Internal change to GetOrCreateUser (#1852) 2021-05-26 20:08:15 -03:00
Evan Raffel
8ed8714375 fix: Grab correct Uses value for vanity urls (#1832) 2021-05-26 18:46:14 -03:00
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
2021-05-26 18:42:35 -03:00
Paulo
ed8e57320a feature: Remove obsolete sync voice regions methods and properties (#1848) 2021-05-26 17:59:14 -03:00
Paulo
7a201e9ff1 feature: Remove DM cache and fix references (#1851)
* Remove DM cache and fix references

* Move line back to where it was
2021-05-26 17:35:49 -03:00
Paulo
95bae786b8 fix: Create DM channel with id and author alone (#1850)
* Create DM channel with id and author alone

* Unneeded cast
2021-05-24 17:19:11 -03:00
Joe4evr
75b74e1a3f Fix line about PriorityAttribute (#21)
Sorting with the highest number first is *de*scending order.
2021-05-25 04:12:09 +08:00
Tsathoggua of Nkai
76a878a3e1 Update EmbedBuilder.Overwrites.md (#20)
Missing "," in the EmbedBuilder code. Do I get the pedantic unlocked now?
2021-05-25 04:12:01 +08:00
Paulo
06a64b7877 feature: Bump API version to 9 (#1847)
* First changes to the config

* Lots of changes to fit the new version

* Remove PermissionTargetConverter
2021-05-24 11:39:20 -03:00
Paulo
690bc3ff9d meta: Bump version to 3.0.0-dev (#1846) 2021-05-23 13:36:39 -03:00
Paulo
2ad0f0c2fe meta: 2.4.0 (#1845) 2021-05-22 15:12:57 -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
PoofImaFox
86dc89e821 Fix error in example. (#1807) 2021-04-28 09:55:57 -03:00
Paulo
452f2dca7c Remove foxbot.me docs link 2021-04-28 09:53:14 -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