aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_core (follow)
Commit message (Collapse)AuthorAgeLines
* Update Discord invite regex to also match backslash before the invite codeGravatar Chris Lovering2024-09-11-1/+1
|
* Ignore ASYNC109 where timeout is used for paginationGravatar Chris Lovering2024-07-25-1/+1
|
* Correct docstring for ViewWithUserAndRoleCheckGravatar Chris Lovering2024-07-25-1/+1
|
* Add py.typed (#254)Gravatar decorator-factory2024-07-17-0/+0
|
* Lint repo with new ruff rulesGravatar Chris Lovering2024-03-24-3/+4
|
* Extract original error upon exceptions, if any (#209)Gravatar Amrou Bellalouna2024-03-20-0/+1
|
* reflect changes in changelogGravatar shtlrs2024-03-18-0/+6
|
* expose a way for registering the command error managerGravatar shtlrs2024-03-18-0/+12
| | | | The manager instance needs to be bound "late" due to the bot since error handlers might need an instance of bot to work
* subclass CommandTreeGravatar shtlrs2024-03-18-0/+19
| | | | this subclass will be calling the error manager upon error
* register all error handlers in the CommandErrorManager classGravatar shtlrs2024-03-18-1/+60
| | | | The purpose is to register the handlers in one place, which will allow us to delegate the choosing of the right handler & handling to the manager
* add the AbstractCommandErrorHandler interfaceGravatar shtlrs2024-03-18-0/+27
| | | | this represents an interface that all command handlers will need to implement in order to be able to use them in both app & text command errors
* make error_handling a packageGravatar shtlrs2024-03-18-0/+0
| | | | This also moves the handle_forbidden_from_block util to the package's ctor to ensure backwards compat
* Update ruff to target Python 3.11Gravatar Chris Lovering2024-03-18-9/+8
|
* Drop support for Python 3.10Gravatar Chris Lovering2024-03-18-3/+1
|
* Drop support for Pydantic 1.XGravatar Chris Lovering2024-03-04-1/+1
|
* ruff lint fix: Breaking changes to make bool args kwarg-onlyGravatar Chris Lovering2024-03-04-3/+5
|
* ruff lint fix: Manual non-breaking changesGravatar Chris Lovering2024-03-04-20/+21
|
* ruff lint fix: Run remaining auto-fixable rulesGravatar Chris Lovering2024-03-04-11/+12
|
* document the instance attributes of BotBaseGravatar shtlrs2024-02-18-1/+14
|
* Add lock utilsGravatar Chris Lovering2024-01-30-1/+250
| | | | | | | This includes some additional function utils too. Co-authored-by: Numerlor <[email protected]> Co-authored-by: MarkKoz <[email protected]>
* Satisfy new ruff linting rulesGravatar Chris Lovering2024-01-30-2/+2
|
* Add the a user_has_access helper function to interactions module.Gravatar Chris Lovering2024-01-30-12/+26
| | | | This returns whether the given user is in the allowed_users list, or has a role from allowed_roles.
* adhere to google docstrings stylev10.6.0Gravatar shtlrs2024-01-30-18/+51
|
* export checks module from the utils packageGravatar shtlrs2024-01-30-0/+2
|
* port all checks from sir-lancebot and botGravatar shtlrs2024-01-30-0/+187
|
* expose the pagination utils from the pydis_core packageGravatar shtlrs2024-01-05-7/+15
|
* port LinePaginator and `PaginationEmojis` into the pagination module.Gravatar shtlrs2024-01-04-4/+400
| | | | This will allow their reusability in all other bots
* port reaction_check in a new `messages` utilGravatar shtlrs2024-01-04-0/+48
| | | | This is because it's a component that can be reused by all bots.
* Do not attempt to read response body if the HTTP response code is 204.v10.5.1Gravatar Chris Lovering2023-12-14-23/+11
|
* Lint repo to latest ruff rulesGravatar Chris Lovering2023-11-27-2/+0
|
* Update ruff config to enable unsafe and preview rulesGravatar Chris Lovering2023-10-26-1/+1
|
* Set various loggers to suitable default levelsv10.3.0Gravatar Chris Lovering2023-09-20-0/+7
| | | | These levels were pulled from bot's current logging setup
* Add log_format to the logging util to allow for standardised loggingGravatar Chris Lovering2023-09-20-0/+6
|
* Lint repo with new ruff rulesGravatar Chris Lovering2023-08-28-2/+13
|
* fixup: Update BotBase.process_commands docstring to be more explicitGravatar Chris Lovering2023-07-25-1/+5
|
* Add BotBase.wait_until_bot_started which can be used to hold a process until ↵Gravatar Chris Lovering2023-07-25-0/+6
| | | | all extensions are loaded.
* fixup: correct docstring wording in paste_serviceGravatar Chris Lovering2023-07-20-1/+1
|
* Add type hints to paste_service pydantic modelsGravatar Chris Lovering2023-07-14-5/+5
|
* Support sending multiple files to paste service at onceGravatar Chris Lovering2023-07-14-22/+36
| | | | Co-authored-by: Hassan Abouelela <[email protected]>
* Update code for new linter rulesGravatar Chris Lovering2023-07-14-1/+8
|
* Update get_or_fetch_channel's return type (#187)Gravatar Amrou Bellalouna2023-07-10-1/+4
| | | | | | | * update get_or_fetch_channel's return type * unindent overly indented signature * update changelog
* Update expiry label from 1 month to 30 days (#185)v9.9.2Gravatar ChrisJL2023-07-02-1/+1
| | | Since there isn't 1 true answer to how many seconds are in 1 month, making it 30 days is just easier.
* Add supported lexer validation to paste service and default the paste_url (#182)v9.9.0Gravatar ChrisJL2023-06-21-4/+31
|
* Bump d.py (#181)v9.8.0Gravatar ChrisJL2023-06-14-1/+1
| | | | | * Bump d.py to 2.3.0 * Linting fixes for new ruff version
* Handle discord.Forbidden 90001 errors by default in `create_task()` (#177)v9.7.0Gravatar TizzySaurus2023-06-10-7/+54
| | | Co-authored-by: Chris Lovering <[email protected]>
* Add paste service utility (#179)Gravatar ChrisJL2023-06-10-1/+115
|
* lint: fix typo (#180)Gravatar Bradley Reynolds2023-06-05-1/+1
|
* Apply fixes for ruff lintingGravatar Chris Lovering2023-05-31-63/+51
|
* Log when waiting for a guild before loading extensionsGravatar Chris Lovering2023-05-06-0/+3
|
* Explicitly set the stack level of the warnings.warn callGravatar Chris Lovering2023-03-02-1/+1
| | | | The warn method from the warnings module uses a stacklevel of 1 by default. This will only show a stack trace for the line on which the warn method is called. It is therefore recommended to use a stacklevel of 2 or greater to provide more information to the user.