Skip to content

Petto v0.7.11

Choose a tag to compare

@github-actions github-actions released this 12 Nov 18:49
Immutable release. Only release title and notes can be modified.
10eb16e

Security

  • The bot is no longer open source: its code is private now. Why: someone tried to add malicious code to the bot through a pull request, code that would have let the data of the database be taken out and sent to another network (the bot has direct access to the database and to the internet). It never reached the bot: every change is reviewed line by line before it is merged, and that pull request was rejected; no data was leaked. To close the door to this kind of attempt, the repository stopped being public. It may be open source again in the future; the maintainer and the team are evaluating it. What: the website and the wiki no longer say the bot is open source (the FAQ, the news post /code, the links to GitHub and the changelog explain it). Impact: nothing changes for a server (the same security, privacy and terms); the LICENSE and the governance files of the repository are not changed by this release.

Added

  • /levels manage sync can sync more than the roles: type is roles, voice-roles, levels, messages or all. Why: /levels manage sync-roles only gave the reward roles that members had already earned; after changing the curve or the maximum level the saved levels stayed old, the roles of the voice levels had no way of their own, and the counters of messages could not be fixed. What: the command is now /levels manage sync (also !level manage sync) with an optional type (default roles, so it does what it did): roles and voice-roles give the reward roles of the levels of the messages and of the voice; levels calculates the level of the messages and of the voice again from the XP with the curve and the maximum level of today (up or down, database only, nobody is announced); messages raises the counter of messages of each member to what the activity statistics say, when it says more (not when the server has statistics off or without members); all does everything, levels first so the roles follow them. It only gives roles, never takes one away. The old !levels manage sync-roles and the published short word !lmsr still work and mean roles. The logic is utils/levelSync.ts (TypeScript, compiled over its .js), with two new functions in db/levelUsers.js (listForSync, raiseMessagesFromStats). The limit of members looked at for roles went from 2000 to 10000 (the old answer said to run it again for the rest, which could never reach them: it started from the same member every time). Texts in English, Spanish and Portuguese (leveling.sync.* changed, leveling.sync.done and leveling.sync.roles.* removed). Impact: no table or column; the command in the / menu changes name and gets an option (Discord can take a while to show it).

  • Activity leaderboards: choose which cards a board has, and they update about every 5 minutes. Why: a server did not always want the month, the week and the day (only the month, or the week and the day), and an update once an hour was too slow to be a live board. What: /activityboard set <chat|voice> <channel> [periods] takes periods (all, monthly, weekly, daily, monthly-weekly, monthly-daily, weekly-daily); left out, a new board has all three and an existing one keeps the ones it has, and status shows them. Taking a card away deletes its message; adding one posts them all again in order. The cards are looked at about every 5 minutes (the job looks every minute and a board is due 270 seconds after its last time) instead of every 55 minutes, without more load: a card is edited only when what it says changed (and anyway about once an hour, which is how a deleted message is found), a round stops after 45 seconds and waits only after a board that wrote at Discord, only the chosen periods are read from activity_members, and the load guard also pauses the job when the bot is degraded (activityLeaderboardJob in SHED_IN_DEGRADED_JOBS), not only when it is critical. The footer of the cards says Updates every 5 minutes!. Impact: new column activity_leaderboards.periods text[] not null default '{monthly,weekly,daily}', created at start with if not exists, so the boards that exist keep all three cards and, being due at the next look because their text changed, are edited at the first rounds after the deploy; a board that cannot be written is now tried again in about 5 minutes (it was an hour) and logs a warning each time for an unexpected error. The dashboard and the wiki are updated in their own pull requests.

  • /variables and !variables (alias !vars): where to find every option of every command. Why: the options that are written after a command (--color, --duration 7d, --joined_after 30d) were only known by who wrote them, and the list of variables of messages was only in !embed vars. What: any option of any command can be written as --name value (the prefix always read them, but nothing said so), and !variables explains it: !variables <command> lists the options of a command or of one of its parts (!variables quote, !variables role all), from its own builder and in the language of the server, with which ones are required and the values they take; !variables <option> says where an option is used (!variables duration: 39 commands); !variables flags lists the options that are only written in the text and are not in the / menu (--color, --light, --bold of !quote; --reply, --delete, --ping, --previous, --strict, --not_strict, --mode, --embed_template of !autoresponder; --private and --message of !pagination; the nine of !counter create; the bare --preview of !role and !joinrole); !variables messages says where the variables of messages are. Team-only commands are not listed. It is a slash command of its own too (asked by the maintainer), so slash commands go from 90 to 91 of 100: 9 slots are free instead of 10, and the check that kept 10 free (scripts/check-slash-structure.js) now keeps 9 (scripts/check-umbrellas-3.js and the counts of five other checks are updated). From a slash command, it calls itself back with /variables and shows the examples of options with !, since --name value is only written with a prefix. The list of text-only flags is one typed list (src/utils/commandFlags.ts) and scripts/check-variables.js fails when a --flag appears in the code or in the texts that is neither an option of a command nor in that list, so a new one cannot be forgotten (it found --goal of !counter create, which was not written anywhere). Written in TypeScript (src/commands/info/variables.ts, src/utils/commandFlags.ts, compiled over their .js with npm run build:ts). Not verified: only tested with Discord replaced; no real server ran !variables, and the wiki page (Variables) has the same information.

  • Activity leaderboards: a role for the most active member of the week. Why: servers wanted the most active member to be seen in the member list, not only on the cards. What: /activityboard role-set <chat|voice> <role> (also !activityboard role-set) chooses a role for the chat and another for the voice; when each week ends (Monday, GMT-5, Colombia) the number 1 of that week gets it and the one who had it loses it. role-remove stops it and takes the role from who has it, and role-status shows each role, who has it and what is wrong. It uses the same counts as the cards, so it skips bots, who asked not to be counted (!stats privacy) and who left, a quiet week leaves the role with nobody, and a server with statistics off cannot use it. Petto needs Manage Roles and the role has to be below its highest role (not @everyone, not a bot or booster role); a role it cannot give keeps the reason and is tried again in an hour. When a role is set, last week's number 1 gets it within about 5 minutes. They are subcommands of /activityboard, so no slash slot is used. New table activity_top_roles (created at start). Written in TypeScript (src/utils/activityTopRole.ts, src/db/activityTopRoles.ts). Not verified: only tested with Discord replaced; no real server got the role, so the first week change in a real server was not seen. Check in scripts/check-activity-top-role.js.

  • /rank and /leaderboard are slash commands of their own. Why: to see your level you had to write /levels rank, and the ranking was /levels leaderboard, longer than it needed to be. What: /rank [user] shows the level card and /leaderboard [page] shows the XP ranking (it was the command top, now called leaderboard; !top, !lb and !ranking still work, and the rules a server saved for top (disabled, restricted, permission levels) still apply to it through legacyRuleNames). /levels rank and /levels leaderboard are not in the / menu any more (no command twice, prefixOnlySubcommands of /levels, new option of defineUmbrella), but they keep working with the prefix, with their words: !levels rank, !levels leaderboard and the short !lra and !ll, which were published. The two take 2 slots: 90 slash commands, 10 free (the check keeps at least 10). Not verified: only tested with Discord replaced; the new commands were not registered in a real server, and Discord can take a while to show them. Checks in scripts/check-umbrellas-2.js, check-umbrellas-3.js, check-slash-structure.js and check-member-access.js.

  • Activity leaderboards: the most active members of the chat and of the voice channels, in a channel, edited every hour. Why: servers want a live "who talks the most" board (daily, weekly and monthly) without asking for it by hand. What: /activityboard set <chat|voice> <channel> (also !activityboard, !actlb) posts three cards in the channel: the month, the week and the day, each with the most active member on its own line (a heart), the next nine numbered with the pink numbers, the count (messages, or voice minutes), when the period starts again (Resets in 4 days) and Updates every hour!. Petto edits the same messages once an hour (about every 5 minutes it looks for the ones that are due); if someone deletes one, it writes the three again so they stay in order. remove takes them away and deletes the messages, status says where they are and when they were updated, and refresh writes them again now (once a minute per server). Needs Manage Server; Petto needs View Channel, Send Messages and Read Message History in the channel. Days, weeks (Monday to Sunday) and months are the ones of Petto, GMT-5 (Colombia). It reads the counts that !stats already keeps (a number per member and day, never what was said), so it follows !statsconfig (a server with statistics off, or kept without members, cannot have it) and leaves out who asked not to be counted (!stats privacy), bots and members who left. New table activity_leaderboards (created at start). Written in TypeScript (src/utils/activityLeaderboard.ts, src/db/activityLeaderboards.ts, src/jobs/activityLeaderboardJob.ts, src/commands/info/activityboard.ts, compiled over their .js with npm run build:ts). Not verified: only tested with Discord replaced; no real server got a leaderboard, so the look in Discord and the hourly edits were not seen. Check in scripts/check-activity-leaderboards.js.

  • /role mass jobs get buttons under their card. Why: to start a preview for real, or to pause, continue or cancel a job, you had to type /role job ... again. What: a preview that has ended shows Apply (it runs the same job without the preview, for the same members, with its own card) and Discard (the card says it was discarded and nothing is changed); a job that runs shows Pause (or Continue when paused) and Cancel. They use the music icons (play, pause, stop) and the trash can, only Administrators can press them (the same as the commands), and a card that was left behind (the job is not in that state any more) answers in private and does nothing. The same buttons are on the card of /role job status. The words are in English, Spanish and Portuguese. Written in TypeScript (src/utils/bulkRoleButtons.ts, compiled over bulkRoleButtons.js with npm run build:ts). Not verified: only tested with Discord replaced (a fake click on each button); not pressed in a real server, so how the buttons look and the delay of pause and cancel (the engine looks at the job every few seconds) are not seen. Check in scripts/check-bulk-role-buttons.js.

  • !perf cpu [seconds]: which functions and files use the processor. Why: !perf already said how the bot was doing (database, Discord, event loop, memory, jobs, listeners) but not what was using the processor when the event loop lagged, so the cause of a slowdown had to be guessed. What: a CPU profile of the running bot for 3 to 30 seconds (10 by default) with the functions that used the most processor (self time, % of the busy time), the files that add up the most, and how much was the garbage collector. It uses the profiler built into Node (no new dependency), samples only while it runs, runs one at a time, and is refused when the load level is critical. Only the owner and the developers (team command). Run it while the slowness is happening: a quiet bot shows mostly idle. Not verified: only run in a check (a function that burns processor on purpose comes out first); not run on the real bot, so its cost there is unmeasured. Written in TypeScript (src/utils/cpuProfile.ts, compiled over cpuProfile.js with npm run build:ts). Check in scripts/check-cpu-profile.js.

  • Role quotas: choose where the messages count, a reminder before the period ends, and /rolequota progress. Why: a quota that counts every channel rewards spam in off-topic chats, members only learned they had fallen short when it was too late, and the staff had no way to see who was behind without waiting for the end. What: /rolequota channels <role> <all|only|except> [channels] (every channel, only some, or all but some; categories and their threads included), /rolequota remind <role> <hours> (0 to 72; members below the quota get a DM that many hours before the period ends, once for each period, and it is off by default) and /rolequota progress [role] (administrators see who is below the quota now with their strikes; members with time off and new members are only counted). The dashboard has the first two in each quota; it shows numbers only, never who is below. set no longer resets them. New columns channel_mode, channel_ids, remind_hours and reminded_period in role_quotas (apply at start). Not verified: only tested with Discord replaced; no real server received a reminder. Check in scripts/check-role-quotas.js.

  • Role quotas: a number of messages that a role must send in each period, and the role is taken away from who misses it too many times. Why: servers with staff, ambassadors or active-member roles want to ask for activity and keep the role only for who gives it, without checking by hand. What: /rolequota set <role> <messages> [days] [strikes] [dm] [report] (a week and 3 in a row by default), remove, list, status [user], excuse <user> <days> and unexcuse (also !rolequota, !quota); the same in the dashboard (Role quotas). At the end of each period Petto judges each member who holds the role, adds a strike or clears them, takes the role away from who reached the strikes, tells who fell short by DM (it can be turned off) and posts the result in a report channel if the server chose one. A member given the role during a period is judged from the next one, and excused members are left as they were. Only a number per member and period is kept, never what was said, and only for members who hold a role with a quota. Up to 25 quotas per server. Not verified: only tested with Discord replaced; no real server ran a period. Check in scripts/check-role-quotas.js.

  • A server is told clearly when Petto cannot give the verification role. Why: when a member passed the verification and Discord refused to change their roles (the role of Petto below the roles it gives, or no Manage Roles), the server only got the generic notice about permissions and could look for the wrong thing. What: that error is its own notice (verifyRoles) with the cause and the fix (drag the Petto role above the verified and unverified roles, give it Manage Roles, ask the member to verify again), in English, Spanish and Portuguese. It goes the same way as the other notices: the private staff or log channel, else the owner by DM, else only the team, at most once every 6 hours per server and kind. The team can also send it with !guildsend. Not verified: only tested with Discord replaced; no real server received it. Check in scripts/check-guild-notices.js.

  • /ban and /mute take an optional time; /tempban and /tempmute are not slash commands any more. Why: a ban or a mute that ends was a command of its own, so there were two commands for one action. What: /ban user duration reason and /mute user duration reason (the time is optional: without it the ban is permanent and the mute lasts until it is lifted; with it they are the same temporary ban and mute as before, same cases, DMs, logs and expiry). /tempban and /tempmute are removed from the slash menu. With the prefix nothing is removed: !tempban, !tempmute, !tban, !tmute, !timeout keep working, and !ban @member 7d spam and !mute @member 3d also take the time, or none for a permanent one. The option delete_message_days of /ban moved after the reason so the order is user, time, reason. Not verified: only tested with Discord replaced; the old slash commands stay in Discord's menu until the next deploy of commands. Checks in scripts/check-mod-command.js, scripts/check-slash-commands.js and scripts/check-slash-structure.js.

  • Verification by email code as a method of its own (no captcha), and a switch for the DM when a member joins. Why: some servers do not want a captcha, and some do not want the bot to write to everyone who joins. What: method can now be email (/verify setup method:email, or the dashboard): the page is only the email step (the member types an address or uses "Use my Discord email" and types the code), with the same rules as the extra (well-known providers, no +, no throwaway emails, domains) and the Tor, alt-account and Discord-account checks still on top. The code alone proves that the member has an inbox, not that they are a person, so a captcha plus the email (the extra, as before) is still the strongest. It needs the link and the way to send the email: without either nobody is gated (said once in the log), and a member who already holds the gate role is refused with "try again in a moment" rather than let in with nothing checked. dm_on_join (/verify setup dm:false, or the dashboard): the DM with the way to verify can be turned off, only when the server has a panel in a channel (with neither nobody could verify, so then the DM is sent anyway). /verify status shows it. New column verification_config.dm_on_join and email in the check of method; both apply at start.

  • Verification: Tor, alt accounts, the Discord account and an email code, on top of the captcha. Why: the captcha only proves a person is there; a server also wants to stop people who hide behind Tor, come back with other accounts, use brand-new or empty accounts, or have no real email. What: from the dashboard (Verification) or !verify checks: Tor (the public list of exit nodes, read every hour), alt accounts (the same connection or email as another member of the server or as one who was banned; only keyed hashes are kept, 90 days), the Discord account (minimum age, an avatar, not flagged by Discord as spammer or quarantined) and the email code (six digits sent with Resend to the address the member types, in the language of the page; only addresses of well-known providers (Gmail, Outlook, Hotmail, Yahoo, iCloud, Proton...), no +tag and no personal or company domains unless the server allows them; nothing keeps the email; the member can also press "Use my Discord email": a login with Discord (scopes identify and email, revoked at once) and the code goes to the email of that account, which has to be the one the link was made for and verified by Discord; the same rules apply). The email of the code is laid out like a welcome email: banner with the mascot, big title, the code, a "stay safe" part and a footer with the links to the website, the support server, Terms and Privacy. Each of the first three is off, warn (the member verifies and the staff is told in the verification log) or block (the member is told why and can try again, for example without Tor). VPN and virtual-machine checks are not included (they need a paid service or are easy to get around). New: RESEND_API_KEY and RESEND_FROM; without them a server that asks for the code is not asked. New for the Discord email: DISCORD_CLIENT_SECRET and the redirect <VERIFY_BASE_URL>/api/verify/discord/callback in the Developer Portal; without the secret only typing is offered. Not verified against real Discord, Resend or Tor: sending an email, the Tor list from the real address and a real visit through Cloudflare (the checks use fake ones). Checks in scripts/check-verify-checks.js.

  • A member who leaves the server and joins again has to verify again. Why: a verified member who left and came back was let in without the check ("persistent verify"), which is how an account that was taken over (or sold) gets back in. What: every member who joins is gated with the unverified role and gets the way to verify, also one who verified before; and the sticky roles no longer give the verified role back when the server verifies. Servers without verification are unchanged. The verified member who stays is not asked again. Checks in scripts/check-verify-rejoin.js.

  • /automod link asks Google Safe Browsing again, and the public threat lists are gone. Why: the Google check was replaced by downloaded lists (OpenPhish, URLhaus) on September 28, but Google flags links the lists do not, and the lists filled a table of a second database that has to stay free. What: /automod link (and !am link) uses GOOGLE_SAFE_BROWSING_API_KEY as it did; a link Google flags is kept in malicious_links (main database, a few rows), the Petto team is told once, and a message with a kept link is removed without calling Google (the free tier is 10,000 checks a day). Without the key, or if Google does not answer, the answer is "I was unable to check that URL". Removed: the job that downloaded the lists every six hours (maliciousFeedJob), the background move to the second database (dataMoveJob, db/dataMove.js), the MALICIOUS_FEED_SYNC_INTERVAL_MS variable and the dashboard route to the second database. The second database (PETTO_DATA2_DATABASE_URL) is not used by the bot any more: no table is made in it. The rows the lists left in the main database are deleted with delete from malicious_links where reported_by is null and source in ('openphish', 'urlhaus', 'phishing_filter_domains');. Checks in scripts/check-safe-browsing.js.

  • The feedback board is done by Petto: the second bot (feed) is not needed any more. Each post of petto.sbs/feedback is published in the feedback channel (FEEDBACK_CHANNEL_ID) as the same card, with Like and Dislike buttons, links to the post and its comments, and is edited when the votes, the comments or the state change and deleted with the post. A press on a button is the vote of that person, written straight to the database (before it went bot → website → database): one vote per person, the other button changes it and the same one takes it back, the person gets a private answer (in their language) and the card shows the new numbers. /feedback (and !feedback) points to the board. The website asks Petto with the dashboard key (POST /api/feedback/card/publish|update|remove|republish); the old feed cards cannot be edited by Petto, so update replaces them (Petto needs Manage Messages in the channel) and republish draws all of them again once. Global: 91 registered commands, 88 chat commands of 100 (12 free). Not verified against real Discord: publishing, editing and deleting the card, the buttons, replacing a card of the old bot. Checks in scripts/check-feedback-board.js.

  • /ban, /kick, /mute, /warn, /jail, /imagemute and /reactionmute take their options directly: no more /ban user. /ban user:@x reason:... delete_message_days:.... What else they held is a command of its own, and each reaches the same code: /unban, /unmute and /unjail (global), /banlist [hard], /mutelist, /jaillist, /jailsetup, /warnescalation add|remove|list, /imageunmute and /reactionunmute (server set), and /massunban cancel:true stops the mass unban that is running. The prefix is unchanged (!ban @x, !ban remove, !ban list, !warn escalation add...): the registered command gets the options of its user subcommand (slashFlatten, utils/slashJson.js) and the code is given that subcommand back. Global: 87 chat commands of 100 (13 free); server set: 25.

  • The status of /premium has buttons and menus. Under your own status: a button to give Premium to the server you are in (or take it back), a menu to give a slot to another server you manage (only the ones that do not have it), and a menu to take a slot back. They show only what can be done now, change the slots right there and draw the card again with what happened; they are for who asked and go away after five minutes.

  • /user and /server are slash commands again, grouped. /user info|avatar|banner|cosmetics|permissions|id|first-message|activity and /server info|icon|banner|splash|roles|channels|emojis|boosters|channel|role|emoji|invite|role-members|bots|summary|steal: no loose /avatar, /banner, /userinfo, /serverinfo, /roleinfo, /channelinfo, /roles, /emojis any more (and none of their copies in the server set). The prefix words are as before (!avatar, !serverinfo, !user avatar, !servericon...). Global: 84 chat commands of 100 (16 free); the server set drops to 18.

  • /premium: Premium from Discord, with good support. /premium add [server] gives one of your Premium slots to a server where you own it or have Administrator or Manage Server (the list of the option shows exactly those servers, the ones that already have your Premium marked with ★; this server by default), /premium remove [server] takes the slot back (the list shows the servers that hold one), /premium servers lists them with the slots left, /premium info explains the plans, and /premium status [user] is the status. Every refusal says why (no Premium, no slots left, the server has Premium from someone else, you are not an administrator there). It was prefix-only; !premium add works too. /premium is not in /bot twice any more (!bot premium still works with the prefix). Global: 90 chat commands of 100 (10 free).

  • The status of /premium is a Components V2 card, not an embed: title and what it means with the avatar, the plans, the period, the slots, the servers, how to give a slot and two link buttons (the dashboard and the plans).

  • /customize: how Petto looks in a server, from Discord and not only from the Customize page. /customize nickname, avatar, banner, description, namestyle (font, effect and colors), reset (one thing or all) and view. The same as the page: the nickname is free, the rest needs Premium (also resetting it), and it changes the server profile of the bot in Discord and the copy of it in the database. Needs Manage Server; in the server set (guildScoped).

  • /channel copyperms from to [merge] copies the permission overwrites of a channel to another, replacing the old ones or merging them (the source wins for the same role or member). Needs Manage Channels and Manage Roles.

  • Level words with the prefix are in one place. !xp add|remove|set|transfer @member 1500 changes the XP of a member and !lvl add|remove|set @member 5 (also !nivel, !rank) its level; before, !xp add answered "add is not part of level". !rank @member and !lvl alone are still the card, !xp still opens the settings (!xp reward add, !xp event add...). They are the same commands as /levels manage xp and /levels manage level (same permission and code).

  • !help <command> opens with the group page, in the style of Bleed. For a command with subcommands the first page is Group: ban: what it does, who can use it, the syntax (!ban <subcommand>), every subcommand with its description and Page 1/5 (4 entries) · Module: moderation; the pages after it are the subcommands one by one and the menu jumps to any. /help shows the same list when a command is opened from the menu. /ban remove-all stays in the / menu next to /massunban.

  • /massban, /masskick, /masswarn, /massunban, /massmute and /massunmute are slash commands again, with the names people know. They are in the server set (guildScoped). /ban users, /kick users, /warn users, /mute users and /mute remove-users leave the / menu so no command is there twice; the words keep working with the prefix and in !modtools (slashHiddenSubcommands).

  • What /user, /server, /staff and /config held is a slash command of its own each (/userinfo, /avatar, /serverinfo, /backup, /alias, /voice...), and the four are prefix commands only now. Why: the menu grouped commands that had a name of their own (/server role is !roleinfo), and the flat form is what people type. What: from /user: /userinfo, /avatar, /banner, /usercosmetics, /permissions, /snowflake, /firstmessage, /activity; from /server: /serverinfo, /roleinfo, /channelinfo, /roles, /channels, /emojis, /emojiinfo, /boosters, /inviteinfo, /bots, /summary, /steal, and three new ones that were small functions of the umbrella: /servericon, /serverbanner, /serversplash (so !servericon... are commands now, not routes); from /staff: /imagemute, /reactionmute, /voice, /nuke, /raid, and /rolemembers (the old !inrole; the names imute, rmute and inrole stay for the prefix, the slash names are whole words, and a rule of a server for the old word applies to the new one); from /config: /backup, /alias, /cmdconfig, /moderation, /restrictcommand, /disablecommand, /sanctionmessage, /appeals, /statsconfig. /staff massban, masskick, masswarn, massunban, massmute and massunmute are not slash commands any more because they were copies of /ban users, /kick users, /warn users, /ban remove-all, /mute users and /mute remove-users (the prefix words work as before), and !language stays prefix only (the check keeps it so). The eleven most used are global (/userinfo, /avatar, /banner, /serverinfo, /roleinfo, /channelinfo, /roles, /emojis, /backup, /alias, /voice) and the other 26 use the second set of slash commands (guildScoped, registered in each server: the 100 more that Discord gives each server). There are 89 global chat commands (of 100) and 26 per server. Not verified: the per-server registration has never run against a real server; if a server was invited without the applications.commands scope the commands of the second set do not show there (the prefix still works), and a name like /permissions sits close to /permission. Checks in scripts/check-slash-commands.js, scripts/check-slash-structure.js and the umbrella checks.

  • /role all (and humans, has, bots) counts first who needs the change, says how long it takes, and no longer fills the log with rate-limit warnings. Why: a bulk job on a server of 70,000 members made the log of the team repeat, every minute, user rate limit on PUT /guilds/:id/members/:id/roles/:id and Slow Discord request ... 6000 ms: that wait is Discord pacing the route (about ten changes every ten seconds) and the job's normal speed, not a failure, and the card of the job only said how many members it had looked at. What: before the first change the job reads the member list and the card says Server: N members · X already have the role · Y need the change, then About 3 h left worked out from the changes that are left at the pace of the job (Discord's pace at first, the measured one after five changes) instead of from the members already looked at; while it counts the card says so. While a bulk role job runs, the two warnings about that route (utils/perf.js, utils/restTelemetry.js) are left out (they are still counted for !perf, and every other route and any global limit is reported as before; utils/bulkRoleActivity.js). Texts in English, Spanish and Portuguese. Checks in scripts/check-bulk-roles.js.

  • !premium shows the servers and slots of every active Premium of a person, and a free server can be assigned. Why: someone with more than one active Premium (a plan and a grant by hand, or two grants) saw only the servers and the slots of the newest one, so a server with a manual slot did not show; and !premiumadmin assign and grant ... <server> read a server that nobody holds yet as "taken" and refused it. What: the status counts the servers and the slots of all the active Premiums together (3 / 4), lists every server (when they do not fit in the field the last line says +N), names each plan, and a new server goes to the Premium that still has a free slot. Checks in scripts/check-premium-status.js.

  • /mod is not a slash command any more: each action it held is a command of its own, and /action is named in English. Why: /mod softban and /mod hardban were different commands put inside a menu, /mod ban was a copy of /ban that nobody used, and a Spanish Discord showed /accion for /action (commands are named in English everywhere else). What: /softban, /hardban, /purge, /history, /stripstaff, /clearinvites and /pauseinvites are slash commands of their own, with the options and the permission they always had; the unban, the unmute and the unjail are /ban remove, /mute remove and /jail remove (they already existed), and /mod stays only for the prefix (!mod ban @x and every word of it work as before). /action and its groups (love, play, fight, feel, react) keep their English names in every language (they were shown as accion, afecto, juego...; the descriptions are still translated). /case delete-all is /case remove-all (like the removing of /ban, /mute, /jail and /note); !case delete-all and the short words !csda and !mcda still work with the prefix. There are 82 global chat commands now (of 100) and 3 menus; the checks keep at least 15 free and say to mark commands guildScoped past that. Checks in scripts/check-mod-command.js, scripts/check-slash-commands.js and scripts/check-slash-structure.js.

  • The moderation tools are slash commands of their own (/case, /note, /jail, /mute, /nickname, /thread, /snipe, /lockdown), and Petto can now use the 100 extra slots Discord gives each server. Why: reading a case meant /modtools case view, a command that only grouped other commands, and !help case delete-all showed no slash form at all. What: the eight groups of /modtools are global slash commands with the same subcommands and options (/case delete-all, /note add, /lockdown start...); /modtools is no longer a slash command (it stays for the prefix: !modtools case view and the short words such as !mcv work as before), !help <command> shows their slash form (Slash: /case delete-all <user>). No command is in the menu twice: /mod ban, /mod kick, /mod warn, /mod mute, /mod note, /mod case, /mod jail, /mod nickname, /mod lockdown, /mod unlockdown, /mod lock, /mod unlock and /mod slowmode, and /staff thread-rename, /staff thread-lock, /staff thread-unlock, /staff snipe, /staff massmute and /staff massunmute are not in the / menu any more (/mod has 10 subcommands and /staff 18), because each is a command of its own (/ban, /kick, /warn, /channel, /mute, /note, /case, /thread, /snipe...); the words keep working with the prefix (!mod ban @x, !staff thread-lock). A ban or a mute that ends is a command of its own, /tempban user duration and /tempmute user duration (not /ban temp), and so /ban user and /mute user have no duration option in the menu; the prefix is unchanged (!ban @x 7d, !tempban, !ban temp). There are 76 global chat commands now (of 100) and 3 menus. For when the global 100 run out, a command marked guildScoped: true is registered in each server instead of globally (a second 100 that Discord gives each server; none is marked yet, so nothing is registered per server today): Petto registers that set when it joins a server and, at every start, looks at each server one by one (a pause between them) and registers only where it is missing or changed (what Discord has is compared first, so a server that lost the set when Petto left and came back gets it again and the daily limit is not spent). A server where Discord does not allow it (403, the bot was added without the applications.commands scope) is skipped, and a rate limit stops the pass until the next start. The cleanup of old server copies keeps that set instead of emptying a server, node deploy-commands.js registers it, and !slots shows how many of the 100 server slots are used. Not verified: only tested with Discord replaced; the per-server registration has never run against a real server. Checks in scripts/check-deploy-commands.js, scripts/check-slash-commands.js and scripts/check-slash-structure.js.

  • The Petto team can answer the person who reported a DM, from the report card. Why: the only way to tell a reporter what happened was to send them a friend request, which is slow and looks odd. What: the card of every report that is still open in the team channel now has a Reply to reporter button next to Mark handled. It opens a form (only the Petto team can use it); what is written is sent to the reporter by DM as a message of the Petto team ("A message from the Petto team about your report #N", the words quoted, in the language the reporter used, never saying who wrote it, with no mention that can notify anyone). The card then says how many times it was answered and when, and the report stays open until someone marks it handled. A handled report is final and cannot be answered (its card has no buttons). If the reporter closed their DMs nothing is counted and the team is told. The cards of open reports that were already in the channel get the button once, a little after the bot starts. Needs four new columns on dm_reports (reporter_lang, reply_count, last_reply_by, last_reply_at), which schema.sql adds on start. Checks in scripts/check-dm-origin.js.

  • /bot topcommands (and !topcommands): the commands of Petto that are used the most. Why: members and the team could not see what is used. Every run of a command is counted (in memory, written in batches into the new command_usage table, which is created on start) and the list shows ten commands a page with its buttons. The bot ran a long time before counting, so each command starts from between one and two million runs (a steady value worked out from its name) and the runs counted since are added; the team's own count of a command goes in src/data/commandUsageBaseline.json (overrides). Private tools of the team and hidden commands are not listed.

  • !color reads every way of writing a color and answers with a sample picture. Why: it only understood hex, so rgb(255, 136, 0), hsl(...) or a name were refused, and its card was only numbers with nothing to see. Now !color, !hex, !clr and /search color take hex (#ff8800, ff8800, #f80, #ff880080, 0xff8800), RGB (rgb(255, 136, 0), 255 136 0, r255 g136 b0), HSL, HSV/HSB, CMYK, a decimal number (16746496), any CSS color name and the basic ones in Spanish and Portuguese (rojo, vermelho), and random; anything else gets the list of ways to write one. The card shows the color as HEX, RGB, HSL, HSV, CMYK and decimal, the closest name, how readable white and black text are on it (WCAG contrast, AA and AAA), and a picture: the color as a big block, white and black text on it, the color as text and as a button on a dark and a light background, seven shades from darker to lighter, and a gradient to its complement. Without Attach Files the card still comes, without the picture. Three bare numbers are RGB (to say HSL write hsl, a % or h32 s100 l50); only digits with exactly 3 or 6 of them are hex, any other number is the decimal one. Finding the main color of a picture (!color <link or member>) works as before.

  • /community is gone: each thing members send to the staff is a command of its own, with its setup next to it. Why: /community suggestion, /community confess and the rest read oddly (the word community says nothing about what a member is doing), and the servers asked for separate commands. What: /suggest (send, and setup, config, set, approve, deny, consider, implement, reopen, delete, view, votes, list, block, unblock, panel), /confess (send, and the setup and moderation of confessions), /request (make, list and the group config), /review (give, remove, show), /profile (show and the group config) and /poll are slash commands now; Petto registers 70 commands (67 slash commands and 3 menus; it was 65). The prefix is as before: !suggest <text>, !sug, !confess <text>, !suggestion ..., !confession ..., !request ..., !requestconfig ..., !review ..., !profile @member, !profileconfig ... and every short alias (!csa is now !suggest approve) keep working, and !suggest approve 3, !request config channel #staff and !profile config view reach the old command. A rule a server saved for community (!disablecommand, !restrictcommand) still applies to all of them. The /community command is removed: servers have to use the new names.

  • !votes show splits the votes by list. Why: the command added the votes of top.gg and omniplex.gg together (248 votes from 61 members, you have 7), so the owner saw 110 votes and could not tell which list they came from, nor whether omniplex votes had started to arrive. Now the card shows, under the server total, one line with each list and its votes (**top.gg** 110 · **omniplex.gg** 12, the sum of weight per bot_votes.source, with the names of utils/voteLists.js), and the member's own line adds the split (<@member> has **7** (top.gg 5 · omniplex.gg 2)) only when they have votes on both lists; with votes on one list it stays the short line. A source that is neither topgg nor omniplex is left out of the split but still counts in the totals, and !votes top stays combined. It is one more query in voteTotals (GROUP BY source, in parallel with the two it already ran) that returns a new field lists; the other fields did not change. The card keeps its design (Components V2, no color); texts in English, Spanish and Portuguese (votes.show.mineSplit). Not verified: only tested with the database replaced, never against the real bot_votes table, and the omniplex numbers stay 0 until its webhook is active. Checks in scripts/check-votes.js; docs/REFERENCE.md says this.

Fixed

  • The alert of the load guard explains itself. Why: when the bot went to critical, the priority error card said "Unknown: needs a look" and the team had to read the text to know what it was. What: the alert [load guard] The bot went from ... to critical: ... is now its own kind (load-guard-critical) in utils/errorTriage.js, still a priority error (it pings the team), with an explanation (the bot is overloaded, what the reason means, and to look at !perf and !perf cpu while it happens). Going to degraded is still only in the console. Check in scripts/check-error-triage.js. Not verified: only tested with fakes; a real critical alert was not seen.

  • A feed title with skin-tone emojis is a link again. Why: Discord does not draw a link whose words hold an emoji, so the emojis of a title are left out of the link (for every platform: Reddit, YouTube, Twitch, Kick, RSS and the rest, and the music card); but the skin tones (👍🏽, the squares in Zbros🏽🏽) and the text form of an emoji slipped through, so the card showed the raw [title](link). What: they are left out too, and so is anything that is not a plain character (letters of any language, numbers, punctuation and currency stay), so a link does not break even when an emoji is newer than the list Petto knows. A title that is only emojis, which left an empty link, now goes as plain bold words (the button of the card still opens the post), and a post with no link keeps its emojis. Check in scripts/check-feeds.js (Reddit, YouTube, Twitch and Kick cards).

  • /role (bulk jobs) edits its progress message at most once every 15 seconds. Why: the job edited the message every 25 members or 5 seconds, and Discord limits the edits of a message, so the job waited several seconds on the logs ("Discord rate limit ... PATCH /channels/:id/messages/:id: waiting 4555 ms") and the command felt slow. What: the numbers are still saved as before, but the message is edited at the start, when the plan is known, every 15 seconds while it runs, and always at once when the job is paused, cancelled or finished. A 200-member job edited it 11 times before and 4 or fewer now (scripts/check-bulk-roles.js). Not verified: only tested with Discord replaced; not known how much of the waits on a real server came from these edits. The slow GET /guilds/:id/members (reading the member list) is Discord answering slowly and is not changed.

  • The alerts have no colored side bar, the "not found" answers are softer, the help of a group is short, and a command can be turned off for a category. Why: the yellow, red and green bars of the alerts looked loud next to the cleaner bots; list is not part of ,boosterrole sounded like a reprimand; !help boosterrole listed every subcommand (14 lines and "... and 9 more"); and !disablecommand could stop a command in a channel but not in all the channels of a category. What: (1) confirmations, refusals, warnings, usage cards and the answers of the commands are plain cards, with only the icon at the start (the sanction cards, textCard(..., { keep: true }), and the cards that carry the color of what they show, such as a feed, keep theirs); (2) a word that is not a subcommand says I could not find list in ,boosterrole, then Maybe you meant ,boosterrole admin list? (or You can use create color rename...) and .help boosterrole hint, in English, Spanish and Portuguese; (3) the first page of the help of a group shows its permission, its syntax and the first six words of its subcommands (create color rename icon random remove and 17 more), and the menu below opens each one; (4) !disablecommand rank #category (or /disablecommand with a category) stops the command in every channel inside that category and in their threads, with the same precedence (server, then channel, then category); modules were already possible with !dc category:fun #channel. Not verified: only tested with Discord replaced. Checks in scripts/check-card-colors.js, scripts/check-usage-card.js, scripts/check-help-line.js and scripts/check-disabled-categories.js.

  • A feed that fails says why: a plain reason for the server, the exact error for the Petto team. Why: a feed that could not post showed only "the last notice could not be sent" for any reason (Discord refused the message, Discord did not answer, a limit), and nobody knew which. What: a failure of posting is now one of five reasons that the dashboard can say in plain words (Petto cannot post in that channel, the channel is gone, Discord did not accept the notice, Discord did not answer in time, or it is not known), and a failed look at an account keeps its reason too. The exact error (kind, code, status and what the service or Discord said, with keys, tokens and long secrets cut out) is kept in a new column feeds.last_error_detail and written once to the log for each feed and reason, for the team; the dashboard shows it only to the Petto team in Support mode, never to a server. A feed that is turned off by itself after 5 failures in a row is now told to the server (the private staff or log channel, else the owner, in the language of the server) with the feed, the plain reason and what to do (fix it and press Resume), once when it goes from on to off; before, it went quiet and nobody knew why. Not verified: only tested with Discord replaced; the column is created when the bot starts. Check in scripts/check-feed-error-detail.js.

  • The answer of a reaction role button shows the role as a mention, in a card with a check mark. Why: a role named with a dot or an emoji (as colors roles often are) was answered with its bare name (Se agregó .), which says nothing. What: when a button gives or takes a role the member sees ✅ I gave you the @role role. (English, Spanish and Portuguese), the same for "you already have it" and "you do not have it"; the mention does not ping anybody. Not verified: only tested with Discord replaced.

  • Petto no longer keeps asking Discord for what Discord told it to wait on, and the watchdog does not use its restarts on a Discord that does not answer. Why: on November 10 Discord limited GET /guilds/:id/vanity-url of one busy server for 45 minutes, and Petto asked the vanity URL and the invites at every join there; each request waited inside the REST client until it was aborted (30 s) and kept one of the 40 places for requests, the queue grew, the load guard went critical, and after 3 minutes the watchdog restarted the bot, twice, without any change because the wait is Discord's and survives a restart. What: Petto remembers, for each server and route, a wait of 30 seconds or more that Discord asked for (perf.routeBlockedMs), and the join tracking does not ask for the vanity URL or the invites of that server while it lasts (the join is told as unknown, as when Petto lacks permission). The watchdog allows one restart for a critical level that comes only from Discord not answering (the loop and the memory are fine); a second one in the same hour is held (the bot stays critical and tells the team) instead of using the other restarts. Any other cause (a blocked loop, memory, a busy loop) restarts as before. Not verified: only tested with Discord replaced; the cause of the slow answers of Discord that day (before the limit) is not known. Checks in scripts/check-route-blocks.js and scripts/check-load-protection.js.

  • Channels that Discord hides from Petto are not taken as real: they are left out of backups and of the dashboard lists. Why: from Monday, November 16 Discord shows a bot the channels it cannot view only in outline (name ___hidden___, no topic or permissions, flag 1 << 17, and they are gone from the HTTP channel list), so a backup would have saved them with that name and a restore would have created channels called ___hidden___. What: those channels are not saved in a backup (the backup card says how many were left out and how to fix it: View Channel there, or Administrator), a restore does not match or delete them, and the channel and forum pickers of the dashboard do not list them. Servers where Petto is an administrator see every channel, so nothing changes there. Not verified: only tested with Discord replaced; not run with Private Channel Obfuscation turned on in the developer portal. Check in scripts/check-hidden-channels.js.

  • The Open button of a feedback card has the grey link icon, not the blue arrow. The arrow was the one the old feed bot used, from the glossy set of icons that was taken out of the application; the link icon is the same flat grey as the rest of the card.

  • The direct message of a sanction no longer repeats the server. It said "From Liam" on top (the line every message of Petto carries, with its three buttons) and "Sent from 'petto' (id) with 37 members" at the bottom: the second line is gone. The message now reads 🔨 You have been banned from **Liam**, **Reason:** ... ("No reason provided" when there is none: every sanction has the same lines, a kick too), **Duration:** Permanent (only for a sanction with no end; a timed one says its time in the first line) and -# Case #12. The case number was passed by the commands and then dropped (the server's DM templates get it as {case.number} now); a ban, a kick or a softban messages the member before the case exists, so that message is edited to add the case once it does. It is written in the language of the server (the one set with !language), not the language of the person.

  • /levels manage xp add (and remove, transfer, and manage level add) added the number to the text of the old one. The XP column is a bigint and the database hands it over as a string, so adding 1500 to 8921 gave 89211500 (level 9 became 381). The values are numbers before anything is added.

  • Answering a suggestion again says why it cannot, and an answer to a suggestion whose message was deleted says so. Why: after a suggestion was denied, denying it again showed nothing (the dashboard) or a general line, and approving a suggestion whose message had been deleted from the channel only sent the DM to the author, with nothing telling the staff the message could not be updated. What: each status has its own refusal in the language of the server ("This suggestion is already denied, so it cannot be denied again.", and the same for approved, under consideration, implemented and pending), shown as a red alert in the command and in the dashboard; an answer to a suggestion whose message is gone is still saved (and the author told), and the answer now carries a warning ("The message of this suggestion was deleted from the channel, so it could not be updated. The answer was saved."), shown under the confirmation in the command and as a notice in the dashboard (warning in the answer of the API). Checked in scripts/check-suggestions.js.

  • A suggestion that is already denied (or approved, considered, implemented, pending) cannot be given the same answer again. Why: pressing Deny on a suggestion that was already denied ran the whole answer once more, so the thread and the author got the same message a second time and the card was drawn again for nothing. What: /suggest deny (and approve, consider, implement, reopen), !suggest ... and the dashboard buttons all go through the same answer, which now says "This suggestion is already marked as denied." and changes nothing when the suggestion already has that status; a different answer (approving a denied one, reopening it) still works. The reason of an answer cannot be edited by answering again with the same status. Texts in English, Spanish and Portuguese (suggestions.error.sameStatus). Checked in scripts/check-suggestions.js.

  • The image cards show the avatar decoration: the rank card (both layouts), the level-up card and the welcome cards. Why: only the level-up layout drew the decoration of the avatar (the ring or the effect Discord gives a person), so the rank card and the welcome cards showed the bare avatar. Now every basic image card that has an avatar draws the decoration around it (a fifth bigger than the avatar, as in Discord), right over the avatar and only when the person has one; the rank embed (the text one) is not changed. It can be turned off per card with showDecoration (the dashboard editor has the Avatar decoration box for every basic layout now, and Moving decoration for Premium servers); cards made in the advanced editor are not touched. Checked in scripts/check-cards.js (the layouts are pinned in scripts/fixtures/card-presets.json).

  • A feed that is deleted while Petto is checking it no longer posts after it was deleted, and its warning is gone. Why: removing a feed during a pass of the job (the list of feeds was read a moment before) made Petto fail to write what it had seen (feed_seen_feed_id_fkey, shown in the errors channel as Feed 16: could not write 2 item(s) as seen...), and then it still sent the new notices, so two videos arrived right after the feed was removed. Now that failure (the feed no longer exists) stops the pass for that feed before anything is sent, and it is written as a plain note in the log, not as a warning. Any other failure of the database still lets a feed that exists post, as before (it is kept in memory). Checked in scripts/check-feeds.js.

  • A refused Omniplex delivery no longer fills the channel of errors. Why: when Omniplex has a second webhook with an old secret on the same address, every vote is also sent signed with it and refused (bad_signature), and each one was posted as a warning in the log channel, although the votes (signed with the right secret) were stored. A refusal is now written in the console of the host every time, and in the log channel once an hour per reason with how many there were; the line also names the headers that tell which webhook sent it (and the id of the webhook when Omniplex sends it), never a signature or a secret.

  • The cleanup of servers Petto left reaches every server, and says what it is doing. Why: the date a server left was already saved in the database (a restart of the bot does not matter), but the servers that stay on purpose (a Premium slot in use, backups kept in this database) were only skipped after the oldest 25 were taken, so once 25 of them were at the front of the line nothing behind them was ever deleted. Now they are left out in the query itself, a pass deletes up to 100 servers (with a short rest every 25), and every pass writes one line with how many wait for their 3 days, how many were due and deleted, and how many stay and why. Backups of a server that left are now deleted too after 30 days (GUILD_PURGE_BACKUP_DAYS, 0 keeps them for good as before); Premium in use still keeps everything.

  • Reminders show no numbers, and /remind cancel is a menu. Why: the number in "Reminder #7" was the database's, shared by everybody, so it meant nothing to the member, and the card was one plain line. The confirmation is now a card with the channel, the moment (in each person's own clock, with "in 9 minutes") and the message; /remind list shows each reminder with its moment and message, and a menu under it cancels the one picked (only the member who asked can use it, and it only deletes their own). The reminder that rings quotes the message.

  • /backup export (and the "Download latest" button) gives the file to download. Why: the card said "ready to download" but the JSON was attached to a message made of components, where an attachment is not shown unless a file component points at it, so there was nothing to tap. The card now holds the file; the backup is a JSON file named petto-backup-<server>-<number>.json.

Changed

  • /variables and the status cards of /activityboard are laid out in blocks (Components V2), not one block of text. Why: the answers were a Components V2 card with all the text in a single block, a wall of lines that was hard to read. What: /variables (and !variables) now has a title block, a block of options, a block of what is written in the text and a block per command or option asked for, with a divider between them; each option is a line with its name, kind and required, and its description in small text under it (the same for the parts of a command, for where an option is used and for the flags written only in the text). /activityboard status and role-status get a title and the same two-line rows (the channel or role, and under it when it was updated, who has the role or what is wrong). Done with the ### headings that textCard already turns into blocks, so no new component; the texts variables.* and leaderboards.status.title / leaderboards.role.status.title changed in the three languages, and variables.command.options is new. scripts/check-variables.js checks that the answer has dividers and a block for each part. Impact: only how these answers look.
  • The level-up messages start with a new icon, and the grey empty star is gone from the other messages. Why: the empty star (pe_star_empty) opened the default level-up message and about twenty other messages, and it was too much of the same icon. What: EMOJI.LEVEL_UP (pe_iconlevelup, an arrow pointing up) is what {EMOJI} means in the level-up texts, so the default text and voice messages (leveling.notify.default and leveling.notify.voiceDefault, in the three languages) now start with {EMOJI}, and so does any {EMOJI} a server wrote. The default stays stored without the emoji in level_config (an older stored {EMOJI} ... default still shows the translated default), so nothing is migrated. EMOJI.STAR was removed and each of its uses has an icon that fits: BOT (thanks for adding Petto, !botstatus, Petto in !bots), TICKET (ticket setup and form builder), CHECK (poll panel), PALETTE (embed panel), MEMBERS (role quota report), FIELD_CALENDAR (best day in !stats), BACKUP (the three backup texts), SAFETY (honeypot list), INTEGRATIONS (slot counts), SPEECH (!afk), GEM (!votes and the top lines of !summary) and AUTOMOD (team AutoMod card). The stars of the ticket rating (STAR_FULL, STAR_EMPTY_RATE) are real ratings and stay. Impact: only how messages look; scripts/check-levels-v2.js checks the arrow in the default text and voice messages in English, Spanish and Portuguese, the older stored defaults and a server's own {EMOJI}.
  • A member who leaves loses their XP by default, and it is deleted for real. The rule is now keep_xp. Why: leavers stayed in the rankings (the public leaderboard of the website showed them as an ex-member) and in the database, and reset_on_leave was a name nobody guessed. What: every server, the ones that already existed too, now deletes the XP of a member who leaves: their row of level_users and their rows of level_period_xp (the weekly and monthly rankings), each one on its own so a failure in one does not leave the other behind, so nothing is left of them in any ranking. A server that wants to keep it turns on !level rules keep_xp on (or the dashboard); the old !level rules reset_on_leave on|off still works and means the opposite (on is keep_xp off). keep_xp is a new column of level_config (default off), so no row is overwritten and the old reset_on_leave column is not read any more: a server that had turned the wipe off on purpose can no longer be told apart from one that never chose, so it also starts wiping until it turns keep_xp on. A server with no settings row is left alone. If a member returns they start from nothing (the reward roles come back only where the XP is kept). The sticky roles are not touched. The summary of !level rules no longer says that reward roles are given back when the XP was wiped. Check in scripts/check-level-leave.js. Not verified: only tested with fakes; no real member left a real server, and the rows that earlier leavers left as zeros (and their periods) are not deleted by this change.
  • The picture of the verification panel and of its DM is the avatar Petto has in that server. Why: the cards showed the avatar Petto uses everywhere, so a server that gave Petto an avatar of its own did not see it there. What: the default panel and DM use the avatar of Petto in the server (the one the server gave it, if it has one), and the usual avatar of Petto when it has none; the icon of the website is still the last resort. Not verified: only tested with Discord replaced. Check in scripts/check-verify-discord.js.
  • The verification panel is redesigned (Components V2). Why: the old panel was a wall of text with two buttons under it. What: Petto's current avatar and the server's name on top with a one-line "1 Pick a way · 2 Pass the quick check · 3 The channels open", then a row for each way the server allows with its button on its side ("With a link", "Right here in Discord") and a short note at the bottom; the picture the server chose still goes on top. The buttons keep their ids, so panels already posted keep working until they are posted again. English, Spanish and Portuguese.
  • The DMs of the verification are redesigned (Components V2), like the panel. What: the DM a member gets when they join has Petto's current avatar and the server's name, a row for each way the server allows with its button on its side ("With a link", "Right here in Discord") and a note that it is only for them; the DM of the pass has no color either and a button that opens the server. English, Spanish and Portuguese. The saved designs a server chose for these DMs are not touched.
  • A member who already verified is not asked again because of a role. Why: being verified was only the roles, so a member who verified and was given the gate role by mistake (or lost the verified role) had to do the whole check again. What: the passes are kept (verification_redemptions); a member who passed after joining this server (this stay) and holds the gate role gets their roles back when they press the link or the letters button, with no new check. Leaving and joining again is a new stay and verifies again, as before. To ask for a new check on purpose, /verify send now forgets the earlier pass.
  • "Use my Discord email" takes the box to type away. Why: once the code went to the email of the Discord account there is nothing to type, and two ways at once confused people. What: after the login the page hides the box and the button, says where the code went and offers "Send it again" and "Use another email".