mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-21 20:54:58 +05:00
fix error in tictactoe
This commit is contained in:
parent
4aa0cfe9fa
commit
19ed241e76
1 changed files with 8 additions and 17 deletions
|
@ -81,23 +81,14 @@ async function tictactoe(interaction, options = {}) {
|
|||
const decline = new ButtonBuilder().setLabel(interaction.translate("common:DECLINE")).setStyle(ButtonStyle.Danger).setCustomId("declinettt");
|
||||
const accep = new ActionRowBuilder().addComponents([accept, decline]);
|
||||
|
||||
let m;
|
||||
if (interaction.commandId)
|
||||
m = interaction.reply({
|
||||
const m = interaction.reply({
|
||||
content: interaction.translate("fun/tictactoe:INVITE_USER", {
|
||||
opponent: opponent.id,
|
||||
}),
|
||||
embeds: [acceptEmbed],
|
||||
components: [accep],
|
||||
});
|
||||
else if (!interaction.commandId)
|
||||
m = interaction.reply({
|
||||
content: interaction.translate("fun/tictactoe:INVITE_USER", {
|
||||
opponent: opponent.id,
|
||||
}),
|
||||
embeds: [acceptEmbed],
|
||||
components: [accep],
|
||||
});
|
||||
fetchReply: true,
|
||||
}).then(m => m);
|
||||
|
||||
const collector = m.createMessageComponentCollector({
|
||||
componentType: ComponentType.Button,
|
||||
|
|
Loading…
Reference in a new issue