mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-11 13:56:15 +00:00
fix: fix editing the select menu msg
This commit is contained in:
@@ -58,7 +58,7 @@ export default async function trainAISelectMenu(
|
||||
const voteId = interaction.targetMessage ? interaction.targetMessage.id :
|
||||
interaction.message.reference.messageId;
|
||||
collector.on('collect', (i) => {
|
||||
i.message.edit({ content: 'Sent training data to server.', components: [] });
|
||||
interaction.editReply({ content: 'Sent training data to server.', components: [] });
|
||||
|
||||
const existingVote = interaction.client.trainingVotes.get(voteId);
|
||||
if (existingVote) clearTimeout(existingVote);
|
||||
|
||||
Reference in New Issue
Block a user