mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 05:04: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 decline = new ButtonBuilder().setLabel(interaction.translate("common:DECLINE")).setStyle(ButtonStyle.Danger).setCustomId("declinettt");
|
||||||
const accep = new ActionRowBuilder().addComponents([accept, decline]);
|
const accep = new ActionRowBuilder().addComponents([accept, decline]);
|
||||||
|
|
||||||
let m;
|
const m = interaction.reply({
|
||||||
if (interaction.commandId)
|
|
||||||
m = interaction.reply({
|
|
||||||
content: interaction.translate("fun/tictactoe:INVITE_USER", {
|
content: interaction.translate("fun/tictactoe:INVITE_USER", {
|
||||||
opponent: opponent.id,
|
opponent: opponent.id,
|
||||||
}),
|
}),
|
||||||
embeds: [acceptEmbed],
|
embeds: [acceptEmbed],
|
||||||
components: [accep],
|
components: [accep],
|
||||||
});
|
fetchReply: true,
|
||||||
else if (!interaction.commandId)
|
}).then(m => m);
|
||||||
m = interaction.reply({
|
|
||||||
content: interaction.translate("fun/tictactoe:INVITE_USER", {
|
|
||||||
opponent: opponent.id,
|
|
||||||
}),
|
|
||||||
embeds: [acceptEmbed],
|
|
||||||
components: [accep],
|
|
||||||
});
|
|
||||||
|
|
||||||
const collector = m.createMessageComponentCollector({
|
const collector = m.createMessageComponentCollector({
|
||||||
componentType: ComponentType.Button,
|
componentType: ComponentType.Button,
|
||||||
|
|
Loading…
Reference in a new issue