Jared Shields
2f562bd695
Update docstrings for channel.py
`delete_messages` requires `manage_messages`; the docs in here, nor on RTD reflect this.
Small amendment at line 180, adding three additional.
7 years ago
Rapptz
6782fdd34d
Add missing coroutine decorator to HTTPClient.get_attachment
Fixes #1104
7 years ago
Rapptz
1c215cfbbe
Don't cache webhook users.
Fixes #1101
7 years ago
Rapptz
355eb08b25
Add seek_begin keyword argument to Attachment.save
7 years ago
BeatButton
9d3d8e0f0a
Fix websockets 4.0 support
7 years ago
Eli
ad7506050c
[commands] Allow builtin unbound method converters
7 years ago
Daniel
d53c3a6c12
Fixed opus error check
Fixes #1056
7 years ago
Daniel
881e598a6f
Add errcheck functions to opus foreign functions
7 years ago
Daniel
5a59eae95b
Update opus and add COPYING notice
7 years ago
Rapptz
8de382fcd3
Change logic in PartialEmoji.__str__ a little.
7 years ago
Gorialis
04d9dd9c0d
Change PartialReactionEmoji to PartialEmoji, add a PartialEmojiConverter
7 years ago
Tobotimus
3112e1c17e
Add intersphinx
7 years ago
khazhyk
0ef866a704
[commands] Fix MissingRequiredArgument param handling
Documentation was incorrect, and we were throwing
away the param we were passing.
7 years ago
Chkoupinator
b268d81649
Added a missing "to" in Message.raw_mentions documentation.
7 years ago
CloudNineK
0f56ce7c13
Fix typo in Message.embeds documentation.
7 years ago
khazhyk
456390f417
Ensure gif avatar urls end in `.gif`
This is a workaround for discord having trouble animating gifs if
the url does not end in exactly `.gif`. Since avatar_url is common
for thumbnails etc., adding this workaround here is handy, and
likely restores expected behavior (animated avatars animating).
7 years ago
Rapptz
30b5047b0e
Fix multipart sending for RequestsWebhookAdapter to work.
7 years ago
Rapptz
3a8b97ffb0
[commands] Document that can_run can raise.
7 years ago
Rapptz
e61ac8e60f
[commands] Forbid passing a string to aliases in Command.
Fixes #974
7 years ago
Joshua Butt
f5a443fa8f
Add support for animated emoji to commands ext EmojiConverter
7 years ago
Rapptz
da9828c41f
Use the proper endpoint for removing your own reaction.
7 years ago
Rapptz
97fc4bf651
Update Emoji.url to point to the GIF version of the animated emoji.
7 years ago
Rapptz
a6bf792dec
Animated emoji support.
7 years ago
Rapptz
e2f7945f59
Proper variable name in Client.clear.
7 years ago
Rapptz
5c5a59c18e
Add Client.clear to clear the bot's internal state to a clean slate.
In case you want to have some external restart loop.
7 years ago
Daniel
ceb82ecc7b
Fix self._process not existing during cleanup() in case of error
7 years ago
S Stewart
89f9009a28
[commands] Fix minor spelling mistake
7 years ago
MysterialPy
096584733e
Stop asyncio.async throwing a syntax error in 3.7.
Maintains support for < 3.4.4
8 years ago
Mippy (William)
98c8928934
Missing Voice Regions
8 years ago
verixx
542924d5df
Fixed a zero division error when accessing latencies
When accessing the latencies property on an AutoShardedClient when none of shards are ready, we get a ZeroDivisionError. An example of this can be seen here.
```py
class StatsBot(commands.AutoShardedBot):
def __init__(self):
super().__init__(command_prefix=None)
self._add_commands()
def _add_commands(self):
'''Adds commands automatically'''
for name, attr in inspect.getmembers(self):
if isinstance(attr, commands.Command):
self.add_command(attr)
```
When iterating through this custom client's it accesses the latencies property when no shards are ready, therefore it raises the error. A quick fix for this would be to return None if no shards are ready.
8 years ago
Mippy (William)
b5bc5a36ce
Fix Spelling Error
8 years ago
Rapptz
5013102574
Fix Webhook.delete not working.
8 years ago
Rapptz
89bbbec37e
Missing name parameter in VoiceChannel.edit documentation.
8 years ago
Rapptz
f0c53e4519
Fix URI quoting in Route.
8 years ago
khazhyk
ebecb90c96
is_avatar_animated should always return bool
Was returning None when User.avatar was None
8 years ago
Gorialis
6fc2b51dea
Quote all Route params
8 years ago
Rapptz
47a58d354d
Reimplement zlib streaming.
This time with less bugs. It turned out that the crash was due to a
synchronisation issue between the pending reads and the actual shard
polling mechanism.
Essentially the pending reads would be cancelled via a simple bool but
there would still be a pass left and thus we would have a single
pending read left before or after running the polling mechanism and
this would cause a race condition.
Now the pending read mechanism is properly waited for before returning
control back to the caller.
8 years ago
Rapptz
92a37c2e4f
Revert "Implement zlib streaming for the gateway."
This reverts commit 462191a08b
.
8 years ago
Rapptz
462191a08b
Implement zlib streaming for the gateway.
8 years ago
Rapptz
9b4a2dc7cb
[commands] Minor speed-up for the BucketType.guild case.
None case:
344ns ± 24.4ns -> 49.9ns ± 1.39ns
Valid case:
128ns ± 2.76ns -> 42.7ns ± 0.459ns
8 years ago
Rapptz
1bb7b6ff2d
[commands] Make CooldownMapping.get_bucket take Message instead.
Requiring a full blown Context might be a bit overkill considering
we only use a single attribute from it.
8 years ago
ReinaSakuraba
d53cada91e
Fix TypeError in utils.oauth_url
8 years ago
MysterialPy
bae6f80327
[commands] Split Cooldown state processing to two different functions.
This allows us to check if we are rate limited without
creating a new cool-down window for the command.
8 years ago
Pandentia
b22f7c76c5
Further clarify how bots can interact with emoji endpoints
Clarifies that bot accounts can only interact with emoji they have
created.
8 years ago
Pandentia
51a696e674
Remove reference to "whitelisted" bots for emoji endpoints
Due to a recent change in the Discord API, bots can now create
guild-specific emoji, so I've removed the parts of the documentation
referencing this restriction.
8 years ago
ReinaSakuraba
13632faf97
Fix AppInfo.id being a string
8 years ago
Rapptz
065f408a10
Move pre-emptive message to DEBUG log level.
8 years ago
Rapptz
711dfb83ab
Allow creating a channel with a category.
8 years ago
Rapptz
6d6ce14d7c
Fix Guild.system_channel always returning None.
Fixes #811
8 years ago
Rapptz
f86ac47b28
Don't use Bulk Channel Edit endpoint if not actually moving channels.
Should make the category-only edit cases more straightforward since
it does not rely on other guilds in the cache, outside of the category
itself.
8 years ago