| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Fix typing for private channel by user lookup | Rapptz | 2021-08-22 | 1 | -2/+2 |
| | | |||||
| * | Make global log variable in modules private | Rapptz | 2021-08-22 | 1 | -47/+47 |
| | | |||||
| * | Reformat state.py | Rapptz | 2021-08-21 | 1 | -51/+86 |
| | | |||||
| * | Don't clear views in READY | Rapptz | 2021-08-21 | 1 | -3/+5 |
| | | |||||
| * | Typehint state.py | Stocker | 2021-08-21 | 1 | -177/+234 |
| | | |||||
| * | Fix on_typing not dispatching for threads | Rapptz | 2021-08-20 | 1 | -1/+1 |
| | | |||||
| * | Partially type-hint state.py | Rapptz | 2021-08-18 | 1 | -19/+25 |
| | | | | | | This is just work to get started. A more complete type hint will come later. | ||||
| * | Undo coercion of partial DMChannel to PartialMessageable | Rapptz | 2021-08-10 | 1 | -1/+1 |
| | | |||||
| * | Add support for PartialMessageable instances | Rapptz | 2021-08-10 | 1 | -2/+2 |
| | | | | | | This allows library users to send messages to channels without fetching it first. | ||||
| * | Cast removed thread member IDs to int | Rapptz | 2021-07-31 | 1 | -1/+1 |
| | | |||||
| * | FIx on_thread_member_remove passing in None | Rapptz | 2021-07-31 | 1 | -1/+2 |
| | | |||||
| * | Fix on_thread_member_remove not dispatching | Rapptz | 2021-07-31 | 1 | -1/+1 |
| | | |||||
| * | implement guild stickers | Nadir Chowdhury | 2021-07-30 | 1 | -0/+29 |
| | | |||||
| * | Fix user cache acting incorrectly with evictions | Rapptz | 2021-07-29 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | The first issue involved copied users which would lead to user updates causing faster evictions of the cache than was expected. The second issue involved users that weren't bound to an internal lifetime eviction policy. These users would not get evicted. For example, a user without mutual guilds or being part of the internal cache in general (messages, DMs) would never end up being evicted for some strange reason. To handle this case, store_user would get a counterpart named create_user which would create a user without potentially storing them in the cache. That way only users with a bound lifetime within the library would be stored. | ||||
| * | 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 |
| | | |||||