Skip to content

"Server Limit" bot decline reason not selecting the correct pre-made reason #327

@spifory

Description

@spifory

Describe the Bug

Clicking on the "Server Limit" button when picking a bot decline reason ends up actually selecting the "Shit Bot" option and highlighting the "Owner Discontinued Bot" option.

Image

Steps to Reproduce

  1. Decline a bot's application
  2. Click the "Server Limit" option
  3. Check the reason specified in the reason input box

Expected Behavior

It should select the "Server Limit" instead of the "Shit Bot" reason.

case "serverLimit":
document.getElementById("reason").value = "This bot has reached Discord's limit of 100 servers without Discord verification. Please resubmit once it is verified by Discord.";
document.getElementById("discontinued").classList.add("is-default");
document.getElementById("type").value = 16;

Operating System

Arch Linux 6.13.1-arch1-1

Browser

Firefox 134.0

Additional Context

<button type="button" id="offline" onclick="premadeReason('serverLimit');" class="button is-dark">
<span><%= __("page.remove.premadeReasons.serverLimit") %></span>

I presume this has to do with a serverLimit enum value not existing under botReasons

website/@types/enums.ts

Lines 41 to 42 in 2f288fa

discontinued,
shitBot

Metadata

Metadata

Labels

bugIssue/PR related to an error, fault, or flaw.high priorityIssue/PR is a high priority.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions