| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Refactor utcfromtimestamp to use fromtimestamp(..., tz=utc) | Rapptz | 2021-07-09 | 1 | -2/+1 |
| | | |||||
| * | Change WEBHOOK_UPDATE to use guild information from gateway | Rapptz | 2021-07-08 | 1 | -1/+6 |
| | | | | | | | This changes the lookup from unnecessary O(n) to two amortised O(1) lookups. This event pretty much always has a guild_id so the original code was always a performance bottleneck. | ||||
| * | Change CHANNEL_PINS_UPDATE to use guild information from gateway | Rapptz | 2021-07-08 | 1 | -7/+9 |
| | | | | | This changes the channel lookup from O(n) to two amortised O(1) lookups | ||||
| * | Remove calls to gc.collect in ConnectionState | Rapptz | 2021-07-07 | 1 | -18/+0 |
| | | | | | | For some bots this was actually a performance bottleneck, might as well remove it if it causes bad performance | ||||
| * | Move global user storage from WeakValueDictionary to dict | Rapptz | 2021-07-07 | 1 | -5/+26 |
| | | | | | | | | | | | | | Profiling showed that WeakValueDictionary caused rather significant and noticeable slowdowns during startup. Since the only thing it was used for was to automatically remove the key from the mapping when the reference count reaches zero, the same could theoretically be accomplished by using the __del__ special method. There is a chance that this could lead to a memory leak since the __del__ method is not always called, but the only instances of this happening are during interpreter shutdown to my knowledge and at that point the mapping is the least of my concern. | ||||
| * | Separate member_update and presence_update events | Rapptz | 2021-07-04 | 1 | -1/+1 |
| | | |||||
| * | Fix Client.fetch_channel not returning Thread | Alex Nørgaard | 2021-07-03 | 1 | -2/+2 |
| | | |||||
| * | Fix Interaction.channel being None in threads | Nadir Chowdhury | 2021-07-01 | 1 | -3/+3 |
| | | |||||
| * | Set Message.guild from guild_id if unavailable through Message.channel | Lilly Rose Berner | 2021-06-28 | 1 | -1/+1 |
| | | |||||
| * | Dispatch thread_join when a thread is updated but not in cache | Rapptz | 2021-06-28 | 1 | -0/+4 |
| | | |||||
| * | Refactor Guild to support type hints | Rapptz | 2021-06-08 | 1 | -0/+1 |
| | | | | | | | | | | | | | This patch also does the following: * Sets some parameters to be positional only * Changes Guild.edit to use the MISSING sentinel * Changes the various create_channel methods to be type safe * Changes many parameters from Optional[T] to use MISSING * Changes Guild.create_role to use MISSING sentinel This refactor is mostly partial but lays a decent foundation | ||||
| * | Allow pins events to work with threads | Rapptz | 2021-06-08 | 1 | -1/+1 |
| | | |||||
| * | Don't dispatch thread_join on extraneous THREAD_CREATE dispatches | Rapptz | 2021-06-08 | 1 | -2/+4 |
| | | |||||
| * | Parse remaining thread events. | Rapptz | 2021-06-08 | 1 | -5/+50 |
| | | |||||
| * | Add minor parsing for THREAD_LIST_SYNC and THREAD_MEMBER_UPDATE | Rapptz | 2021-06-08 | 1 | -3/+46 |
| | | | | | There's no dispatch for these yet | ||||
| * | Allow Message.channel to be a thread | Rapptz | 2021-06-08 | 1 | -2/+2 |
| | | |||||
| * | First pass at preliminary thread support | Rapptz | 2021-06-08 | 1 | -1/+40 |
| | | | | | | This is missing a lot of functionality right now, such as two gateway events and all the HTTP CRUD endpoints. | ||||
| * | Add support for integration create/update/delete events | Nadir Chowdhury | 2021-06-07 | 1 | -0/+30 |
| | | |||||
| * | Add Client.persistent_views to get all persistent views | Rapptz | 2021-05-31 | 1 | -0/+4 |
| | | |||||
| * | Remove view syncing before editing in views | Rapptz | 2021-05-31 | 1 | -0/+3 |
| | | | | | | This prevents a potential race condition when a MESSAGE_UPDATE is received syncing and refreshing the view components causing a desync. | ||||
| * | Implement StageInstance | Nadir Chowdhury | 2021-05-30 | 1 | -0/+35 |
| | | |||||
| * | Add support for select components | Rapptz | 2021-05-28 | 1 | -1/+1 |
| | | |||||
| * | Add initial support for buttons and components | Rapptz | 2021-05-27 | 1 | -0/+13 |
| | | |||||
| * | Add support for ApplicationFlags | Nadir Chowdhury | 2021-04-18 | 1 | -1/+3 |
| | | |||||
| * | Fix guild.chunk() not working on evicted guilds | Steve C | 2021-04-14 | 1 | -0/+3 |
| | | | | | If you're trying to chunk a guild that the bot is not in, it'll just hang on the chunk coro forever. It's weird, I know. | ||||
| * | Remove fetch_offline_members param for Client | apple502j | 2021-04-14 | 1 | -9/+1 |
| | | |||||
| * | Remove support for guild subscriptions | apple502j | 2021-04-14 | 1 | -1/+0 |
| | | |||||
| * | Remove superfluous unused payload parameter | Rapptz | 2021-04-11 | 1 | -1/+1 |
| | | |||||
| * | Create temporary DMChannels from message create events | Rapptz | 2021-04-11 | 1 | -3/+3 |
| | | | | | | | | | | | This allows for DMChannels to work without falling back to the Object error case since there is enough information to build a pseudo DMChannel object. This is a breaking change since it changes the type of DMChannel.recipient to Optional[User] for when this faux object is created. | ||||
| * | Remove `private_channel_(delete/create)` events | Nadir Chowdhury | 2021-04-11 | 1 | -22/+8 |
| | | |||||
| * | Remove Member related handling in PRESENCE_UPDATE | Rapptz | 2021-04-11 | 1 | -10/+6 |
| | | |||||
| * | First pass at supporting v8 API | Rapptz | 2021-04-11 | 1 | -6/+0 |
| | | |||||
| * | Fix some regressions from create_task change | Rapptz | 2021-04-06 | 1 | -1/+1 |
| | | |||||
| * | Add on_interaction event and Interaction class. | Rapptz | 2021-04-06 | 1 | -0/+5 |
| | | | | | | This is the first pass at the functionality. It's currently a bit incomplete. | ||||
| * | Add support for setting application_id | Rapptz | 2021-04-06 | 1 | -0/+17 |
| | | |||||
| * | Use `asyncio.create_task` over `asyncio.ensure_future` | Nadir Chowdhury | 2021-04-05 | 1 | -6/+6 |
| | | |||||
| * | Convert datetimes to aware datetimes with UTC. | Rapptz | 2021-04-04 | 1 | -0/+1 |
| | | | | | | Naive datetimes will now be interpreted as local time throughout the library. | ||||
| * | Remove userbot functionality | Rapptz | 2021-04-04 | 1 | -98/+28 |
| | | | | | | This has a lot of legacy and cruft so there may be some stuff I've missed but this first pass is enough to get a clear separation. | ||||
| * | Modernize code to use f-strings | Rapptz | 2021-04-04 | 1 | -4/+2 |
| | | | | | | This also removes the encoding on the top, since Python 3 does it by default. It also changes some methods to use `yield from`. | ||||
| * | Code optimisations and refactoring via Sourcery | Nadir Chowdhury | 2021-02-24 | 1 | -5/+4 |
| | | |||||
| * | Use member provided data in typing_start event if not in cache | Rapptz | 2021-01-24 | 1 | -0/+5 |
| | | | | | | | Apparently Discord had this all along. ref: #5965, #5983 | ||||
| * | Change copyright year to present | Nihaal Sangha | 2021-01-15 | 1 | -1/+1 |
| | | |||||
| * | Dispatch user updates if the global cache gets stale in update events | Rapptz | 2021-01-07 | 1 | -0/+6 |
| | | |||||
| * | Implement presences for `Guild.query_members` | Nadir Chowdhury | 2020-12-31 | 1 | -6/+17 |
| | | |||||
| * | remove extraneous assignment | Sebastian Law | 2020-12-22 | 1 | -2/+0 |
| | | |||||
| * | [chore] Remove redundant imports | Nadir Chowdhury | 2020-11-28 | 1 | -2/+0 |
| | | | | This also removes the historical patch for NullHandler implemented in bbf1c54, as it has been available since Python 3.1. | ||||
| * | Ensure member key is not overwritten by author key in MESSAGE_UPDATE | Rapptz | 2020-11-23 | 1 | -0/+3 |
| | | | | | | | | This also coerces the older message to take the member data from the newer message so the types are not incompatible. Fix #5999 | ||||
| * | Don't store a user cache if there's no member intent or cache is off | Rapptz | 2020-11-23 | 1 | -0/+6 |
| | | | | | | | | Without a cache or member intent the user cache can get out of date with no events to update the underlying user in the member object. Ref: #6034 | ||||
| * | Fix error with templates not having access to member cache flags. | Rapptz | 2020-11-21 | 1 | -6/+6 |
| | | | | | | | This also changes the attribute from having an underscore Fix #5986 | ||||
| * | Fix error when querying members from the gateway. | Rapptz | 2020-10-19 | 1 | -2/+1 |
| | | | | | I accidentally made this return True instead of the actual member list | ||||