aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_core/utils (follow)
Commit message (Collapse)AuthorAgeLines
* Update in_whitelist_check to check against the parent channel, if one existsv11.8.0Gravatar Chris Lovering2025-09-18-3/+12
|
* Update Regex to include Discord protocol format (#304)Gravatar Joe Banks2025-08-10-2/+4
| | | | | | | | | | | | | Chris is traveling abroad and is unable to access. Therefore, Fisher have become his proxy. An 'apprentice' if you will. Shame because Fisher have years more software engineering experience compared to him. Unfortunately, neither Fisher nor Chris cared to separate the version bump into a separate commit so SENIOR Engineer Joe Banks to JUNIOR Engineer Chris Lovering with INTERN Fisher has had to Get Involved. Co-authored-by: ChrisLovering <[email protected]> Co-authored-by: fisher60 <[email protected]>
* Update discord invite regexGravatar Janine vN2025-07-13-1/+1
| | | Allows for more than one `\` that occurs before the invite code, which is apparently valid.
* Ensure we don't match to non-invite looking linksGravatar Chris Lovering2024-11-23-2/+2
|
* Escape backslashes in invite regexGravatar Chris Lovering2024-11-23-1/+1
|
* Drop io and li from invite regexGravatar Chris Lovering2024-11-23-1/+1
| | | | These TLDs no longer work
* Update filter regex to not be overly strictGravatar Chris Lovering2024-11-23-2/+4
| | | | Co-authored-by: bj0key <[email protected]>
* Remove repetition from the invite regexGravatar Chris Lovering2024-10-17-7/+2
|
* Move discord(app) capture to its own optional group in invite regexGravatar Chris Lovering2024-10-17-6/+6
|
* Add optional 'app' capture to invite regex OR groupGravatar Chris Lovering2024-10-17-6/+5
|
* Improve readability of invite regex by indenting the large OR groupGravatar Chris Lovering2024-10-17-8/+10
|
* Drop / from invite regex fragementsGravatar Chris Lovering2024-10-17-5/+6
| | | | There is already a fragment that captures slashes further down in the regex
* 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
|
* 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
|
* 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-0/+2
|
* ruff lint fix: Manual non-breaking changesGravatar Chris Lovering2024-03-04-12/+13
|
* ruff lint fix: Run remaining auto-fixable rulesGravatar Chris Lovering2024-03-04-11/+12
|
* 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/+11
|
* 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.
* 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: 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-0/+7
|
* 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
|