aboutsummaryrefslogtreecommitdiffstats
path: root/botcore/utils (follow)
Commit message (Collapse)AuthorAgeLines
* Merge remote-tracking branch 'origin/bot-core-100' into bot-core-100Gravatar Izan2022-07-23-1/+100
|\
| * Merge branch 'main' into bot-core-100Gravatar TizzySaurus2022-07-23-1/+100
| |\
| | * Add an optional message attr to ViewWithUserAndRoleCheckv7.4.0Gravatar ChrisJL2022-07-21-2/+14
| | | | | | | | | | | | | | | On view timeout, this message has it's view removed if set. Co-authored-by: Boris Muratov <[email protected]>
| | * Fix interactions.DeleteMessageButton not working due to using wrong delete ↵Gravatar Chris Lovering2022-07-16-1/+1
| | | | | | | | | | | | method.
| | * Add a generic view and buttonGravatar Chris Lovering2022-07-16-1/+88
| | | | | | | | | | | | | | | | | | The view implements an interaction check for allowed_users and allowed_roles. The button deleted the message attached the the parent view on click.
* | | Raise error when referenced message has no contentGravatar Izan2022-07-23-2/+6
| | |
* | | Reformat docstring to use Google's style & raise error instead of returning NoneGravatar Izan2022-07-23-4/+17
|/ /
* | Add commands.py to __init__.pyGravatar Izan2022-07-15-1/+2
| |
* | Add `clean_text_or_reply` util.Gravatar Izan2022-07-14-0/+21
|/
* Switch `typing.Hashable` With `Collections.abc.Hashable`Gravatar Hassan Abouelela2022-06-29-9/+9
| | | | | | | Switches out the Hashable type from the typing library for the generic from collections. Signed-off-by: Hassan Abouelela <[email protected]>
* Replace Typing GenericsGravatar Hassan Abouelela2022-06-26-8/+10
| | | | | | | | Replaces all typing generics with collection equivalents as per PEP 585. `typing.Callable` was not included in this due to a sphinx-autodoc bug not handling it well. Signed-off-by: Hassan Abouelela <[email protected]>
* Document Create Task Return TypeGravatar Hassan Abouelela2022-06-26-2/+5
| | | | Signed-off-by: Hassan Abouelela <[email protected]>
* Fix Incorrect Typehints & DocstringsGravatar Hassan Abouelela2022-06-26-1/+1
| | | | Signed-off-by: Hassan Abouelela <[email protected]>
* Fix Docstring For Role Change Wrapper UtilGravatar Hassan Abouelela2022-06-26-4/+4
| | | | Signed-off-by: Hassan Abouelela <[email protected]>
* Add Typehints To Typing PatcherGravatar Hassan Abouelela2022-06-26-2/+3
| | | | Signed-off-by: Hassan Abouelela <[email protected]>
* Fix Discord Invite Regex DocsGravatar Hassan Abouelela2022-05-10-3/+4
| | | | Signed-off-by: Hassan Abouelela <[email protected]>
* Remove trailing whitespace from docstringGravatar GDWR2022-05-10-3/+3
|
* `DISCORD_INVITE` captures until a whitespaceGravatar GDWR2022-05-10-1/+5
|
* Type-hint `ignore_module`v6.3.0Gravatar mbaruh2022-04-22-1/+1
|
* Don't look for extensions in packages prefixed with an underscoreGravatar mbaruh2022-04-21-2/+7
| | | | Before this, even if a package is prefixed with an underscore, `walk_extensions` will ignore the package itself, but will still look for extensions inside it.
* Add unqualify to the utils namespaceGravatar Chris Lovering2022-04-20-0/+2
| | | | This is for bots that want to use the unqualify function for their own extension cogs
* Provide a bot.all_extensions instance attributeGravatar Chris Lovering2022-03-24-4/+7
| | | | This allows commands like extensions and source to see all of the available commands, rather than just the currently loaded commands.
* Add BotBase that will act as a base for all our botsGravatar Chris Lovering2022-03-24-8/+4
| | | | | | | This commit also modifies the extensions util, since it's now directly used by bot-core. Co-authored-by: Mark <[email protected]> Co-authored-by: Hassan Abouelela <[email protected]>
* Change all instance of disnake to discordGravatar Chris Lovering2022-03-15-31/+31
|
* fix: Set the logger class in botcore.utils.logging.py to the CustomLogger classGravatar ToxicKidz2022-03-05-0/+6
| | | | Fixes an issue when using trace logging on loggers that were instantiated before the class was set.
* Surface apply_monkey_patches directly in the util namespaceGravatar Chris Lovering2022-03-03-15/+21
|
* Migrate to using disnake over Discord.py 2.0a0Gravatar Chris Lovering2022-02-24-26/+26
|
* Add disnake monkey patchesGravatar Chris Lovering2022-02-24-1/+85
| | | | | | | This covers the monkeypatches for Commands and Groups to allow for root aliases, along with a monkey patch for typing events, in case discord decides to raise 403s again. Co-authored-by: Mark <[email protected]> Co-authored-by: Hassan Abouelela <[email protected]>
* Consistently use double backticks when referring to a variable name.Gravatar Chris Lovering2022-02-24-28/+49
| | | | Also add sphix-style docstrings to functions that were previously missing them.
* Rename loggers.py to logging.py to allow for more generic utils in futureGravatar Chris Lovering2022-02-24-9/+9
|
* Alter docstrings to look better in autodocsGravatar Chris Lovering2022-02-24-13/+30
|
* Move new utilities to the util namespaceGravatar Chris Lovering2022-02-24-0/+545