From 2826307c909d1b74a929b6913af3d4bd04a5428e Mon Sep 17 00:00:00 2001 From: Marijn Kneppers Date: Wed, 8 Nov 2023 12:06:06 +0100 Subject: [PATCH] Remove channel check for ptal command (#53) --- src/commands/ptal.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/commands/ptal.ts b/src/commands/ptal.ts index 865cdb1..7097411 100644 --- a/src/commands/ptal.ts +++ b/src/commands/ptal.ts @@ -79,15 +79,6 @@ function GetReviewStateFromReview(state: string): PullRequestState const generateReplyFromInteraction = async (description: string, github: string, deployment: string | null, other: string | null, interaction: ChatInputCommandInteraction | ButtonInteraction): Promise => { - // Allow /ptal in test server - if (interaction.guild?.name !== 'bot test') { - if(!(await interaction.guild?.channels.fetch(interaction.channelId))?.name.includes("ptal")) - { - interaction.reply({content: "This command can only be used in PTAL channels", ephemeral: true}) - return null; - } - } - let urls: string[] = []; let components: any[] = []; const isUpdate = interaction.type === InteractionType.MessageComponent;