aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Collapse)AuthorLines
2021-11-07SHow thread parent name if linked message in threadGravatar Shivansh-007-1/+3
2021-11-07Attach attachments if present in linked messageGravatar Shivansh-007-0/+2
2021-11-07Add no message content handlingGravatar Shivansh-007-4/+6
2021-10-21Missed a change for 43bed60Gravatar Shivansh-007-1/+1
2021-10-21Fix helpers view perms check to use 'permissions_for'Gravatar Shivansh-007-3/+2
2021-10-21avatar.url -> display_avatar.urlGravatar Shivansh-007-1/+1
2021-10-19Modlog: correct color namesGravatar Matteo Bertucci-4/+4
Solves https://github.com/python-discord/bot/issues/1896
2021-10-19Mod-log thread: use soft colorsGravatar Matteo Bertucci-4/+4
Seems like we have been using the wrong colors in mod-log.
2021-10-19Update log message for when author isn't `discord.Member`Gravatar Izan-2/+1
2021-10-19Invert `isinstance` check as per reviewGravatar Izan-3/+6
2021-10-19Fix incident webhook fetch validationGravatar Shivansh-007-2/+3
2021-10-19Add message creation timestamp to message link embedGravatar Shivansh-007-1/+2
2021-10-19Make docstring clear about max lengthGravatar Shivansh-007-2/+6
2021-10-19Removing config validation checksGravatar Shivansh-007-5/+1
2021-10-18Migrate to on_socket_event_type eventGravatar Chris Lovering-4/+3
Discord.py 2.0 (Namely this commit https://github.com/Rapptz/discord.py/commit/e2250d402e8ad035b2653eb411c8e744cc9eb3bf) removed the socket_response event, and replaced it with the socket_event_type event, which just sends the type of event triggered on the websocket. Since this event was removed, no socket stats were being incremented, as the event never triggered. I have looked through the rest of the bot, and we do not use the socket_response event type anywhere else.
2021-10-17Fix guild icon URL getting way in server command (#1888)Gravatar Karlis Suvi-1/+1
2021-10-18Refactor shorten_text utility functionGravatar Shivansh-007-8/+10
2021-10-17Fix attr error since asset attrs have changed in 2.0Gravatar Chris Lovering-1/+1
Fixes #1886 Fixes BOT-1NZ This was updated with Discord.py 2.0.
2021-10-17Use MISSING sentinal rather than None for no filesGravatar Chris Lovering-1/+1
Fixes #1884 Fixes BOT-1NY Discord.py 2.0 changed how this works, webhooks now look for the MISSING sentinal, rather than None to determine whether files are being passed. This was updated in this commit: https://github.com/Rapptz/discord.py/commit/a6f7213c89e9d592c69ea3c631b0cb2bdab19577
2021-10-17Fix attr error in ModLog commandGravatar Chris Lovering-1/+1
Fixes #1881 Fixes BOT-1NX
2021-10-17Fixed delayed logs and made some other minor refactors (#1863)Gravatar wookie184-28/+19
* Run debug log before help command invocation to avoid delayed logs * Refactored other areas of code slightly, ensuring logging is done as soon as possible. Removed outdated comment * Ensured debug logs were sent for disabled commands Co-authored-by: Xithrius <[email protected]>
2021-10-17Regex: add a word boundary before .gg (#1817)Gravatar Matteo Bertucci-12/+12
* Regex: add a word boundary before .gg and use named groups Before this commit, `an-arbitrary-domain.gg/notaninvite` would trigger the filter. This solve the issue by adding a word boundary before this branch of the pattern. * Regex: replace the word boundary by a word char Co-authored-by: ChrisJL <[email protected]> Co-authored-by: ChrisJL <[email protected]> Co-authored-by: Xithrius <[email protected]>
2021-10-17Add incidents check in delete and reaction handlers alsoGravatar Shivansh-007-3/+5
2021-10-17Check for webhook availability before extracting msg linksGravatar Shivansh-007-3/+4
2021-10-17Remove unneeded config entriesGravatar Chris Lovering-4/+2
Since channels that mods can't read are now implicitly ignored, there is no need to explicitly ignore them.
2021-10-17Use modlog ignore function for voice events tooGravatar Chris Lovering-1/+2
2021-10-17Refactor: Update modlog ignore function nameGravatar Chris Lovering-3/+3
This new name better describes what this function actually does
2021-10-17Ignore channels mod team can't view in modlogGravatar Chris Lovering-8/+19
The main purpose of this is so that we don't need to keep adding to the modlog_blacklist for every new channel we want to ignore, since it now implicitly ignores channels mods don't have read perms to. This is done by making use of Discord.py 2.0's updated behaviour of Channel.permissions_for() where it can now accept a role and determines the permissions of users in that role for a given channel. This takes into account default permissions as well as channel overrides. Co-authored-by: Xithrius <[email protected]>
2021-10-17Formats Help Command OutputGravatar Chris Lovering-1/+5
Closes #1232 Modifies the docstring sent for per-command help to remove weird formatting issues mentioned in #1232. Removes newlines that are not used for paragraph breaks, after retrieving the docstring, and lets the embed handle it on the discord side. Allow overriding this behaviour via \u2003 to denote a non-escapable break. Co-authored-by: Hassan Abouelela <[email protected]>
2021-10-17Modlog: remove tzinfo from member_join (#1877)Gravatar Matteo Bertucci-1/+1
2021-10-16Do not try to calculate expiry if infraction is permanent on reapplyGravatar ks129-5/+9
2021-10-15Voice gate: set tzinfo to None in author.joined_atGravatar Matteo Bertucci-1/+1
2021-10-15Defcon: remove tzinfo from member.created_atGravatar Matteo Bertucci-1/+1
2021-10-15Isort: set atomic to trueGravatar Matteo Bertucci-0/+1
2021-10-15Actions: do not check licenses of dev packagesGravatar Matteo Bertucci-2/+4
2021-10-14Update `isinstance` checkGravatar TizzySaurus-1/+1
2021-10-14Fix newlines after imports and address reviewGravatar Izan-6/+2
There's now always one blank line (no more, no less) after an import
2021-10-14Migrate to `bot.log.get_logger` functionGravatar Izan-206/+199
2021-10-14Add `CustomLogger` to bot/log.pyGravatar Izan-18/+33