Fix not being able to decline your own trade
This commit is contained in:
parent
806dcb9ab3
commit
119fc6310f
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ export default class Trade extends ButtonEvent {
|
||||||
// No need to get expiry date
|
// No need to get expiry date
|
||||||
const timeoutId = interaction.customId.split(" ")[7];
|
const timeoutId = interaction.customId.split(" ")[7];
|
||||||
|
|
||||||
if (interaction.user.id !== receiveUserId || interaction.user.id !== giveUserId) {
|
if (interaction.user.id != receiveUserId && interaction.user.id !==giveUserId) {
|
||||||
await interaction.reply("You are not the user who the trade is intended for");
|
await interaction.reply("You are not the user who the trade is intended for");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue