Rapptz
9c6d9f1a84
Remove call handling for now.
8 years ago
Rapptz
ead18e3948
Fix issue with members not copying correctly.
8 years ago
Rapptz
e78a5c0643
Remove remaining voice_member tracking.
8 years ago
Rapptz
f6fcb62c7b
Check for PrivateChannel before GuildChannel in Client.get_channel
8 years ago
Rapptz
29f676c42e
Wrap asyncio.wait into a saner alternative that raises TimeoutError.
Fixes #494
8 years ago
Rapptz
b8727fd463
Fix Client.emojis returning a list of IDs.
8 years ago
Rapptz
0dac5e3139
Add Client.emojis to get all emojis.
This removes the older get_all_emojis generator.
8 years ago
Rapptz
554ae196d3
Add missing int casts in many different events in the state.
Also remove redundant role parsing in Member._update_roles.
8 years ago
Rapptz
b876133e87
Add compatibility shim for asyncio.Future creation.
Should provide better support for uvloop.
8 years ago
Rapptz
e1aaf74fa7
Add option to disable auto member chunking.
8 years ago
Rapptz
d206ee792b
Fix issue with user bots chunking unavailable guilds.
8 years ago
Rapptz
ff9f5749e1
Update copyright year to 2017.
8 years ago
Rapptz
4c981ee631
Add support for relationships.
8 years ago
Rapptz
fa384f2114
Make ClientUser separate from a regular User.
This removes Client.edit_profile in favour of ClientUser.edit.
8 years ago
Rapptz
f465f88d81
Reimplement Guild.me property without patching it in.
8 years ago
Ian Salmons
c635ce2526
Simple parser for CHANNEL_PINS_UPDATE
8 years ago
Rapptz
92c1637921
Allow overriding the shard_ids used for initial shard launch.
8 years ago
Rapptz
20041ea756
Implement AutoShardedClient for transparent sharding.
This allows people to run their >2,500 guild bot in a single process
without the headaches of IPC/RPC or much difficulty.
8 years ago
Rapptz
d54d7f7ac0
Fix variable shadowing in READY parsing.
8 years ago
Rapptz
808a05ff2d
Move global user cache to a WeakValueDictionary.
8 years ago
Rapptz
c863d93f69
Fix bug that made member roles go missing.
8 years ago
Rapptz
7690455b21
Make User and Member messageable.
8 years ago
Rapptz
98b981848d
Move message creation to a factory method inside ConnectionState.
8 years ago
Rapptz
5e6bfecb07
Move away from StateContext and use ConnectionState directly.
8 years ago
Rapptz
4e175d36d3
Add delete_after parameter to MessageChannel.send
8 years ago
Rapptz
79a49f9145
Absolute import some circular dependencies to appease Python 3.4.
8 years ago
Rapptz
2c50c18ca3
Change dict value views into lists.
9 years ago
Rapptz
c187d87dae
Re-add support for reactions.
We now store emojis in a global cache and make things like adding
and removing reactions part of the stateful Message class.
9 years ago
Rapptz
59a0df5f98
Rename try_insert_user to store_user
9 years ago
Rapptz
5cb3ad14e8
Make emojis and members stateful.
9 years ago
Rapptz
a7a60e433b
Make roles and guilds stateful.
9 years ago
Rapptz
d1d54a468a
Rename Server to Guild everywhere.
9 years ago
Rapptz
53ab263125
Split channel types.
This splits them into the following:
* DMChannel
* GroupChannel
* VoiceChannel
* TextChannel
This also makes the channels "stateful".
9 years ago
Rapptz
45c729b167
Switch IDs to use int instead of str
9 years ago
Rapptz
31229a53e9
Optimise VoiceState for memory.
Instead of storing one VoiceState per Member, only store them if
necessary. This should bring down the number of instances
significantly.
9 years ago
Rapptz
044b0824e6
Begin working on the rewrite.
9 years ago
Rapptz
a8264f6540
Chunk every guild if it's a user bot.
This also increases the timeout for chunking by 30 seconds for every
chunk we're waiting for.
8 years ago
Rapptz
bed2e90e82
Properly propagate loop. Fixes #420 .
8 years ago
Rapptz
a0f4ad36eb
Timeout waiting for chunking.
Sometimes the bot would keep waiting for chunks that somehow finished
before getting to the `wait` call. This is more so a temporary fix
rather than a fully correct one.
8 years ago
khazhyk
c8fd8a9e1a
Fix crash on duplicate or out of order reactions.
Eventual consistency ftw
9 years ago
Rapptz
92c3c2804d
Support MESSAGE_REACTION_REMOVE_ALL event.
9 years ago
khazhyk
8bd242f00b
Fix crash on reaction remove.
Discord can sometimes send integer 0 as the emoji id instead of
null to signify a non-custom emoji, which was causing a crash due
to a 'is not None' check assuming the reaction was for an emoji
with id 0. Probably a discord bug, but preferable to handle here
rather than crash users.
9 years ago
Rapptz
12a3403af3
Change reaction events signature and name.
This changes the event signature to be (reaction, user) instead of
(message, reaction, user) since the reaction data class already has
the message being reacted to as a member.
The name was shortened from on_message_reaction_ to on_reaction_ since
the message prefix was deemed redundant.
9 years ago
khazhyk
4d87b2f817
Inject full Emoji to Reaction if we have it.
Reaction objects with custom Emoji are partial. If we know of this Emoji
(can find it on this client) then inject it. Otherwise, leave it as a
hollow Emoji. We can still react with a hollow Emoji, but can't get other
metadata about it.
9 years ago
khazhyk
c4acc0e1a1
Add support for reactions.
Reactions can be be standard emojis, or custom server emojis.
Adds
- add/remove_reaction
- get_reaction_users
- Messages have new field reactions
- new events - message_reaction_add, message_reaction_remove
- new permission - add_reactions
9 years ago
Khazhismel
c5a989eeb2
Add custom emoji support.
9 years ago
Rapptz
b0e5357716
Fix voice state update issue in on_voice_state_update
Bug was caused to the shallow copy not copying over the VoiceState
information embedded into the copy. This would mean that when the event
is called, before and after voice state information is essentially
equivalent.
The solution to fix this is to also copy the VoiceState objects.
9 years ago
Rapptz
3cd9f80854
Fix bug where discriminators would not update in PRESENCE_UPDATE.
9 years ago
Rapptz
bd39c3ef45
Add utility properties to CallMessage to query information.
9 years ago
Rapptz
1c8ab25917
Add support for querying information about group calls.
9 years ago