| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
| |
This allows for easier "mock" context objects, for those who use
converters as utility functions outside of commands, and it's more
straightforward with the rest of the file.
|
| |
|
|
|
| |
This adds some implicit permission handling for `discord.VoiceChannel.permissions_for`
This is not documented behavior in discord's developer documentation, but it can easily be verified as correct.
|
| |
|
|
|
| |
This makes it so that _keep_alive is stopped no matter which closing
method is called
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
| |
untested
|
| | |
|
| |
|
|
|
|
|
|
|
| |
This affects:
* commands.has_role
* commands.has_any_role
* commands.bot_has_role
* commands.bot_has_any_role
|
| | |
|
| |
|
|
| |
Mainly files api.po, migrating.po, commands api.po and commands.po.
|
| | |
|
| |
|
| |
As a `bool` converter is treated differently from other callable (basic) converters, the explanatory docs should outline that it is evaluated differently from a simple type cast, and what logic is used in determining how the content is evaluated.
|
| |
|
| |
The Inline Advanced Converters are a logical extension of the Advanced Converters subject, and as such should be placed under that section without an unrelated converter type breaking the two up.
|
| |
|
|
|
|
|
|
|
|
| |
It turns out that events created in an eval command also cause
the issue described in #1506.
Ensure that events we remove are part of a module as well.
Also performs minor comment maintenance
("x", "first y", "then z") -> ("x", "y", "z")
|
| |
|
|
|
|
| |
Basically Discord retrieves the data like
`artist1; artist2; artist3` and when you split only by `;` the results
will be: `[artist1, " artist2", " artist3"]`
|
| |
|
|
|
|
|
|
|
| |
`Webhook.send()` now accepts a `files` kwarg holding a list of `File`
objects, which are included in the HTTP request as `file1`, `file2` and
so on.
This is an undocumented feature of the Discord API, but is analogous
with the client's sending of messages with multiple files.
|
| |
|
|
|
|
| |
Remove the old and slow Member._copy implementation that was left over
by accident in 095f0ec. Since it was defined later it overrode the new
implementation and rendered it moot.
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
Left over by the removal of handlers in 2721689.
|
| |
|
|
| |
Remove trailing whitespace in guild.py introduced by 3727ea9.
|
| |
|
|
| |
Missed by a4d1599 despite being pointed out in #1570.
|
| |
|
|
|
| |
Reorder imports to be consistenly grouped by standard library, third
party library, and local modules in that order thoughout the library.
|
| |
|
|
|
| |
Remove two duplicated entries from the quote mapping in commands.view.
These were introduced at the creation of this mapping in ea061ef.
|
| |
|
|
|
| |
Convert log("fmt" % args) to log("fmt", args) as the latter is lazy and
does not do the formating if the string is never logged.
|
| |
|
|
| |
Remove redundant paranthesis and checks from util.valid_icon_size.
|
| |
|
|
|
| |
Remove redundant parenthisis around await expressions. Left over from
f25091ef.
|
| |
|
|
|
|
|
|
| |
Restrict the values accepted by comparisons with booleans to be actual
booleans.
Minor breaking of undocumented behaviour in permissions; the value to
set bits to must be booleans (as indicated by the type error thrown).
|
| |
|
|
|
| |
Use the more explicit (and common) exc instead of e as the variable
holding the exception in except handlers.
|
| |
|
|
|
|
| |
Use bare raise statement when reraising the exception that occured, and
remove unused exception variables. Also remove a pointless exception
handler in discord.opus.
|
| |
|
|
| |
Add exception qualifier(s) to bare except clauses swallowing exceptions.
|
| |
|
|
| |
This reverts commit 96981210b3415e15446db0b702b07fef25c8b680.
|
| |
|
|
|
| |
Technically a breaking change. This is to be a parallel with the
Bot.add_check interface.
|
| | |
|
| |
|
|
| |
They can now delete all emoji
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
This will probably be reverted in 1 week.
|
| | |
|
| | |
|