aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
...
| * | | | | Fix create_user_embed testsGravatar MarkKoz2021-08-07-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mock User.created_at and User.joined_at because `arrow.get()` doesn't work with Mock objects. The old implementation of `time.discord_timestamp` accepted mocks because it just did `int()` on any type it didn't explicitly check for.
| * | | | | Time: use typing.Literal for precision param of humanize_deltaGravatar MarkKoz2021-08-06-5/+6
| | | | | |
| * | | | | Time: add overload to pass relativedelta kwargs to humanize_deltaGravatar MarkKoz2021-08-06-4/+32
| | | | | |
| * | | | | Time: add overload to pass 2 timestamps to humanize_deltaGravatar MarkKoz2021-08-06-30/+105
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the need for the caller to create a `relativedelta` from 2 timestamps before calling `humanize_delta`. This is especially convenient for cases where the original inputs aren't `datetime`s since `relativedelta` only accepts those.
| * | | | | Time: remove DISCORD_TIMESTAMP_REGEXGravatar MarkKoz2021-08-05-11/+6
| | | | | | | | | | | | | | | | | | | | | | | | There's a saner way to parse the timestamp that relied on this regex.
| * | | | | Time: support more timestamp formats as argumentsGravatar MarkKoz2021-08-05-73/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the burden of conversion from the caller to clean up and simplify the call sites. Handle timestamp conversions internally with arrow.get. Remove format_infraction and get_time_delta because they're now obsolete. Replace the former with discord_timestamp and the latter with format_relative.
| * | | | | Time: rename format_infraction_with_durationGravatar MarkKoz2021-08-05-22/+22
| | | | | | | | | | | | | | | | | | | | | | | | It's not necessarily tied to infractions anymore.
| * | | | | Time: remove timedelta and relativedelta support from discord_timestampGravatar MarkKoz2021-08-05-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a delta is given, it is unknown what it's relative to. The function has to assume it's relative to the POSIX Epoch. However, using a delta for this would be quite odd, and would more likely be a mistake if anything. relativedelta support was broken anyway since it wasn't using the total seconds represented by the delta.
| * | | | | Time: remove broken enum type check in discord_timestampGravatar MarkKoz2021-08-05-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | First, the `args` attribute doesn't exist on enums. Even if it did, this check only works if the argument given is an enum member (of any enum). Such occurrence seems too rare to warrant an explicit check.
| * | | | | Time: remove absolute param from format_infraction_with_durationGravatar MarkKoz2021-08-05-8/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's not used anywhere. Furthermore, a humanised duration with negative values wouldn't make sense.
| * | | | | Time: replace discord_timestamp calls with format_relativeGravatar MarkKoz2021-08-05-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the latter where the former was being called with the relative format type.
| * | | | | Time: rename time_since to format_relativeGravatar MarkKoz2021-08-05-8/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While the function is basically just a wrapper for discord_timestamp now, it is very common to use the relative format. It's cumbersome to import the format enum and pass it to discord_timestamp calls, so keeping this function around will be nice.
| * | | | | Time: qualify uses of functions with the module nameGravatar MarkKoz2021-08-05-58/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In cases where many time utility functions were being imported, this makes the imports shorter and cleaner. In other cases, the function names read better when they're qualified with "time"; the extra context it adds is helpful.
| * | | | | Time: remove RFC1123 supportGravatar MarkKoz2021-08-05-13/+0
|/ / / / / | | | | | | | | | | | | | | | It's not used anywhere and hasn't been for a very long time.
* | | | | empty commit for CIGravatar Joe Banks2022-01-08-0/+0
| | | | |
* | | | | Merge pull request #2041 from python-discord/eval-mentionsGravatar ChrisJL2022-01-08-6/+23
|\ \ \ \ \ | |_|/ / / |/| | | |
| * | | | Fix snekbox tests with new allowed_mentionsGravatar Ben Soyka2022-01-08-4/+20
| | | | |
| * | | | Restrict allowed mentions for !eval resultsGravatar Ben Soyka2022-01-08-2/+3
|/ / / /
* | | | modlog: wait for guild init before using channel cacheGravatar Kronifer2022-01-04-0/+3
| | | | | | | | | | | | Not doing so could cause an error where get_channel would return none for the mod logs channel.
* | | | Merge pull request #2036 from python-discord/fix-bot-2034Gravatar ChrisJL2022-01-02-4/+5
|\ \ \ \ | | | | | | | | | | Infraction mod-log improvements
| * | | | Infraction mod-log improvementsGravatar Izan2022-01-01-4/+5
|/ / / / | | | | | | | | | | | | | | | | | | | | - Add infraction id to infraction edit modlog - Add missing colon in "infraction applied" message - Utilise defined infraction id variable instead of indexing dict again
* | | | Add text indicating when user fetched by message (#2013)Gravatar TizzySaurus2021-12-29-16/+18
| | | | | | | | | | | | Co-authored-by: Xithrius <[email protected]>
* | | | Strip gotcha tag (PR #2000)Gravatar Shom7702021-12-29-0/+17
| | | | | | | | | | | | * adding strip-gotcha tag
* | | | Include message counts in all channels (#2016)Gravatar ChrisJL2021-12-28-14/+45
| | | | | | | | | | | | Co-authored-by: Xithrius <[email protected]>
* | | | Merge pull request #1889 from Kronifer/url-parsingGravatar ChrisJL2021-12-26-278/+394
|\ \ \ \ | | | | | | | | | | feat: added url parsing to the filter
| * | | | feat: changed to tldextractGravatar Kronifer2021-12-26-286/+394
| | | | |
| * | | | feat: added url parsing to filters with support for relative URLsGravatar Kronifer2021-12-26-2/+10
|/ / / /
* | | | Add missing infraction id parameter & change ctx.bot to self.bot (#2028)Gravatar TizzySaurus2021-12-26-2/+2
| | | |
* | | | Merge pull request #2027 from python-discord/fix-dm-sent-featureGravatar Joe Banks2021-12-26-1/+3
|\ \ \ \
| * | | | Add missing `bot` parameter to callGravatar Izan2021-12-26-1/+3
|/ / / /
* | | | Merge pull request #1951 from python-discord/add-dm_sent-fieldGravatar Johannes Christ2021-12-26-12/+45
|\ \ \ \ | | | | | | | | | | Display whether DM was sent to user when listing infraction(s).
| * \ \ \ Merge branch 'main' into add-dm_sent-fieldGravatar Joe Banks2021-12-25-839/+1575
| |\ \ \ \ | |/ / / / |/| | | |
* | | | | Merge pull request #2025 from onerandomusername/fix-issue-2024Gravatar Joe Banks2021-12-21-1/+1
|\ \ \ \ \
| * | | | | fix: pass required argumentGravatar onerandomusername2021-12-21-1/+1
|/ / / / / | | | | | | | | | | | | | | | closes GH-2024
* | | | | Merge pull request #2023 from Numerlor/tag-try-exact-name-onlyGravatar Joe Banks2021-12-19-0/+5
|\ \ \ \ \
| * | | | | Attempt a name only exact match if a tag with a group is searchedGravatar Numerlor2021-12-18-0/+5
|/ / / / /
* | | | | Merge pull request #2019 from python-discord/better-off-topic-tagsGravatar Boris Muratov2021-12-18-10/+13
|\ \ \ \ \ | | | | | | | | | | | | Better off topic tags
| * | | | | Adjust wording to embed contentGravatar mina2021-12-17-1/+1
| | | | | | | | | | | | | | | | | | Co-authored-by: dawn <[email protected]>
| * | | | | Create new tag explaining off-topic channelsGravatar mina2021-12-17-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | The new `off-topic-names` tag lists all off-topic channels (in their original order: 0, 1, 2), includes an explanation of the nightly channel name change, and links to the off-topic etiquette guide.
| * | | | | Rename and reword off-topic tagsGravatar mina2021-12-17-10/+3
|/ / / / / | | | | | | | | | | | | | | | Rename `off-topic` tag to `ot` and shorten description to only include mention of the less-occupied #ot2 off-topic channel.
* | | | | Merge pull request #1989 from python-discord/clean_improvementsGravatar ChrisJL2021-12-16-105/+102
|\ \ \ \ \ | | | | | | | | | | | | Clean improvements
| * \ \ \ \ Merge branch 'main' into clean_improvementsGravatar ChrisJL2021-12-16-544/+631
| |\ \ \ \ \ | |/ / / / / |/| | | | |
* | | | | | Rename channels.discord_py to discord_bots (#1982)Gravatar Ben Soyka2021-12-15-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: ToxicKidz <[email protected]> Co-authored-by: Xithrius <[email protected]>
* | | | | | Merge pull request #2011 from python-discord/dependabot/pip/lxml-4.6.5Gravatar Hassan Abouelela2021-12-14-51/+64
|\ \ \ \ \ \ | | | | | | | | | | | | | | Bump lxml from 4.6.3 to 4.6.5
| * | | | | | Bump lxml from 4.6.3 to 4.6.5Gravatar dependabot[bot]2021-12-13-51/+64
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [lxml](https://github.com/lxml/lxml) from 4.6.3 to 4.6.5. - [Release notes](https://github.com/lxml/lxml/releases) - [Changelog](https://github.com/lxml/lxml/blob/master/CHANGES.txt) - [Commits](https://github.com/lxml/lxml/compare/lxml-4.6.3...lxml-4.6.5) --- updated-dependencies: - dependency-name: lxml dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]>
* | | | | | Merge pull request #2005 from Akarys42/patch-1Gravatar ChrisJL2021-12-10-13/+7
|\ \ \ \ \ \ | | | | | | | | | | | | | | Remove myself from the code ownership
| * | | | | | Remove myself from the code ownershipGravatar Matteo Bertucci2021-12-10-13/+7
|/ / / / / /
* | | | | | Merge pull request #1999 from PH-KDX/patch-2Gravatar ChrisJL2021-12-09-2/+0
|\ \ \ \ \ \ | | | | | | | | | | | | | | Remove deprecated server voice region
| * | | | | | Remove deprecated server voice regionGravatar PH-KDX2021-12-09-2/+0
|/ / / / / / | | | | | | | | | | | | Discord's current model for voice regions is setting it per server. Hence, the "Voice region" section in the server info tag will always display as "deprecated". This pull request removes it.
* | | | | | Merge pull request #1997 from python-discord/reduce-fuzzy-match-lenGravatar Matteo Bertucci2021-12-08-2/+2
|\ \ \ \ \ \ | | | | | | | | | | | | | | Reduce threshold before fuzzy matching to 2