Fix not being able to decline your own trade

This commit is contained in:
Ethan Lane 2024-02-27 18:42:29 +00:00
parent 806dcb9ab3
commit 119fc6310f

View file

@ -140,7 +140,7 @@ export default class Trade extends ButtonEvent {
// No need to get expiry date
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");
return;
}