Rapptz
47ab24991f
[commands] Remove extraneous `or`
6 years ago
Rapptz
79a8249bc7
Add note about escape_markdown in Message.clean_content
Fix #1911
6 years ago
Rapptz
ee81f0614e
[commands] Fix HelpCommand.invoked_with when used in events.
6 years ago
Rapptz
239d430539
Simplify bot loop cleanup routine.
Attempted solution for #2040
6 years ago
Rapptz
7d385b23a1
Fix copy paste error in ClientUser.edit_settings
6 years ago
Rapptz
9248ff306c
Use explicit __eq__ call to be consistent with other methods.
6 years ago
Rapptz
7c5a4b67d7
Fix Attachment.save wording nit.
6 years ago
Rapptz
9833ea82e2
Add helpers to escape markdown and mentions from text.
Fixes #1673
6 years ago
Rapptz
743a5a218f
[commands] Disallow bot_ or cog_ commands or listeners in cogs.
6 years ago
Rapptz
79183846dc
Make abc.GuildChannel.overwrites return a dictionary
Fix #2016
6 years ago
Rapptz
e4de25eaab
[commands] Raise BadArgument in ColourConverter when using from_hsv/rgb
Fixes #2043
6 years ago
CapnS
24d3a5a48d
Only escape characters as necessary in clean_content
Fixes #1885
6 years ago
NCPlayz
1d701f32b6
Add fetch custom emoji, all custom emojis; Add user property to Emoji
6 years ago
Vexs
9591b00dcf
Redesign bulk delete events
Change `parse_message_delete_bulk` to not dispatch individual
`message_delete` events, and instead `bulk_message_delete`. Also make
`raw_bulk_message` delete and `raw_message_delete` have message
objects attached.
Fixes #1807
6 years ago
NCPlayz
be227ebcf0
Redesign asset retrieval in the library.
Most assets now return a new class named `Asset`. This allows for the
assets to be consistently saved via a `save` method instead of special
casing for `Attachment`.
`AppInfo` is no longer a namedtuple it is a fully documented dataclass,
as well as having the state attached to it.
Fixes #1997
6 years ago
Rapptz
dea3ba5eb7
Propagate Cloudflare 429 HTML text.
6 years ago
CapnS
4ec7213506
Added functionality to edit user settings
Changing docs to fit other parts of the lib
Co-Authored-By: CapnS <[email protected] >
Removing Type Checking
Made all of Rapptz's suggested changes
Removing imports that are no longer needed
6 years ago
Rapptz
43b44751af
[commands] Fix MinimalHelpCommand opening note signature consistency
6 years ago
Rapptz
548b9d5693
Double underscore HTTPClient's internal session.
6 years ago
Rapptz
e567b59fea
[commands] Double underscore some attributes.
6 years ago
Rapptz
8c0c410d0e
[commands] Add HelpCommand.invoked_with
This fixes an issue where the context invoked_with does not match the
actual invoked with behaviour (e.g. using Context.send_help).
6 years ago
numbermaniac
77dd4e3de0
guild.py: change wording for create_role error
6 years ago
Rapptz
b41a29a889
Get cached message in reverse order for improved performance.
Most embed-only edits happen for the newest message.
6 years ago
Rapptz
c96642860c
[commands] Add Command.cooldown_after_parsing keyword argument.
This controls the behaviour of cooldown execution order. This does
not change the default behaviour however.
6 years ago
NCPlayz
a1caaf8dcf
Add Guild.max_presences and Guild.max_members
Fixes #1822
Fixes #1418
6 years ago
Capn
fd3a176793
Fix documentation for Channel.last_message
6 years ago
Rapptz
d48a424f6f
Fix mistake in documentation.
6 years ago
Rapptz
72b6b67cf4
Add back PartialEmoji.__hash__ that was deleted due to __eq__.
6 years ago
Rapptz
64d749a13f
[commands] Ensure handlers are copied even during update.
Fix #2001
6 years ago
Rapptz
5fe1ab279a
Drop websockets version due to issues.
6 years ago
Rapptz
35c0476dbb
Add TextChannel.last_message_id and TextChannel.last_message
6 years ago
apple502j
9c32bcdf80
Update docs, mostly Inviting Your Bot
6 years ago
Dice
8123d4a5f7
Add type checking to multi-file send
Convert list comprehension to genexpr
6 years ago
Dice
6f3e32cfbb
Fix sending multiple files
Fixes #2002
6 years ago
Rapptz
c30a366106
Try to consistently use "inherit" vs "derive" in documentation.
6 years ago
Rapptz
d9e54d7dd3
[commands] Redesign extension exception flow.
Instead of raising a whole variety of exceptions, they are now wrapped
into ExtensionError derived classes.
* ExtensionAlreadyLoaded
* Raised when an extension is already loaded in Bot.load_extension
* ExtensionNotLoaded
* Raised when an extension is not loaded, e.g. Bot.unload_extension
* NoEntryPointError
* Raised when an extension does not have a `setup` function.
* ExtensionFailed
* Raised when an extension's `setup` function fails.
* ExtensionNotFound
* Raised when an extension's module import fails.
6 years ago
Rapptz
26e9b5bfac
[commands] Add Bot.reload_extension for atomic loading.
Also do atomic loading in Bot.load_extension
6 years ago
Joshua B
d221ca5f7d
[commands] ColourConverter raises if value is out of range
changes make the `ext.commands.ColourConverter` Converter fail when
user input is outside the acceptable value range 0x000000 - 0xFFFFFF
6 years ago
Rapptz
2ce42b5b50
Some widget fixes.
6 years ago
NCPlayz
8a30a4cac0
Add support for guild widget
6 years ago
NCPlayz
f507f508a2
Expose Metadata
Added access to:
* `/users/@me/guilds`
* `/guilds/{guild_id}`
* `/guilds/{guild_id}/members/{member_id}`
BREAKING CHANGE:
* `get_user_info` -> `fetch_user_info` to match naming scheme.
Remove useless note
Remove `reverse` and corresponding documentation
Update documentation to reflect #1988
Rename `get_` HTTP functions to `fetch_`
Breaking Changes:
* `get_message` -> `fetch_message`
* `get_invite` -> `fetch_invite`
* `get_user_profile` -> `fetch_user_profile`
* `get_webhook_info` -> `fetch_webhook`
* `get_ban` -> `fetch_ban`
Fix InviteConverter, update migrating.rst
Rename get_message to fetch_message
6 years ago
NCPlayz
fb02191b80
Organise documentation
6 years ago
Rapptz
5e65ec978c
Take back ownership of files from aiohttp for retrying requests.
Fix #1809
6 years ago
Rapptz
8ba48c14a7
Minor typo fix.
6 years ago
Rapptz
963cf4b34e
Add on_disconnect event.
I assume this is where it has to be. Fix #1937
6 years ago
Rapptz
f43690bde8
[commands] Walk through MRO for Cog derived classes.
This should support cog subclasses in a relatively consistent way in
terms of expectations. Hopefully nothing is broken.
Fixes #1950
6 years ago
Rapptz
cb9ae7bd76
Sorting bucket requires an integer.
6 years ago
Rapptz
f3f2f882fd
Fix typo in private property name.
6 years ago
Rapptz
f26a27dc98
[commands] Make Bot.cogs and Bot.extensions read-only mappings.
This also has the side effect of effectively documenting them for
public use.
6 years ago
Rapptz
5061915b2a
Add support for store channels.
6 years ago