From b52ed365cf2ea64a5019b419291a2d9d4d76852d Mon Sep 17 00:00:00 2001 From: Vendicated Date: Sat, 3 Oct 2026 00:56:19 +0200 Subject: [PATCH] Remove 'Run Snippet' functionality This was really nice to have support, but having functionality like this is inherently unsafe. For security reasons, it's better to remove it. --- src/plugins/_core/supportHelper.tsx | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/src/plugins/_core/supportHelper.tsx b/src/plugins/_core/supportHelper.tsx index 159ef3865..bfedb942f 100644 --- a/src/plugins/_core/supportHelper.tsx +++ b/src/plugins/_core/supportHelper.tsx @@ -43,8 +43,6 @@ import plugins, { PluginMeta } from "~plugins"; import SettingsPlugin from "./settings"; -const CodeBlockRe = /```js\n(.+?)```/s; - const AdditionalAllowedChannelIds = [ "1024286218801926184", // Vencord > #bot-commands ]; @@ -55,8 +53,6 @@ const TrustedRolesIds = [ DONOR_ROLE_ID, // donor ]; -const AsyncFunction = async function () { }.constructor; - const ShowCurrentGame = getUserSettingLazy("status", "showCurrentGame")!; const isSupportAllowedChannel = (channel: Channel) => channel.parent_id === SUPPORT_CATEGORY_ID || AdditionalAllowedChannelIds.includes(channel.id); @@ -319,28 +315,6 @@ export default definePlugin({ } } - if (props.channel.parent_id === KNOWN_ISSUES_CHANNEL_ID || (props.channel.parent_id === SUPPORT_CATEGORY_ID && props.message.author.id === VENBOT_USER_ID)) { - const match = CodeBlockRe.exec(props.message.content || props.message.embeds[0]?.rawDescription || ""); - if (match) { - buttons.push( - - ); - } - } - return buttons.length ? {buttons} : null;