Compare commits

..

No commits in common. "ed9a4760315574a4d02ec06a5c5ae269326e882f" and "806dcb9ab37bfcb6faf7efd024ea35de39e1fe8e" have entirely different histories.

2 changed files with 18 additions and 18 deletions

View file

@ -100,13 +100,13 @@ export default class Trade extends ButtonEvent {
.setImage("https://i.imgur.com/9w5f1ls.gif") .setImage("https://i.imgur.com/9w5f1ls.gif")
.addFields([ .addFields([
{ {
name: "I receieve", name: `${receiveUser.username} is giving`,
value: `${receiveItem.id}: ${receiveItem.name}`, value: `${giveItem.id}: ${giveItem.name}`,
inline: true, inline: true,
}, },
{ {
name: "You receieve", name: `${giveUser.username} is giving`,
value: `${giveItem.id}: ${giveItem.name}`, value: `${receiveItem.id}: ${receiveItem.name}`,
inline: true, inline: true,
}, },
{ {
@ -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;
} }
@ -170,13 +170,13 @@ export default class Trade extends ButtonEvent {
.setImage("https://i.imgur.com/9w5f1ls.gif") .setImage("https://i.imgur.com/9w5f1ls.gif")
.addFields([ .addFields([
{ {
name: "I Receive", name: `${receiveUser.username} is giving`,
value: `${receiveItem.id}: ${receiveItem.name}`, value: `${giveItem.id}: ${giveItem.name}`,
inline: true, inline: true,
}, },
{ {
name: "You Receive", name: `${giveUser.username} is giving`,
value: `${giveItem.id}: ${giveItem.name}`, value: `${receiveItem.id}: ${receiveItem.name}`,
inline: true, inline: true,
}, },
{ {

View file

@ -63,19 +63,19 @@ export default class Trade extends Command {
const expiry = now.setMinutes(now.getMinutes() + 15); const expiry = now.setMinutes(now.getMinutes() + 15);
const tradeEmbed = new EmbedBuilder() const tradeEmbed = new EmbedBuilder()
.setTitle("⚠️ Trade Offer ⚠️") .setTitle("Trade Offer")
.setDescription(`Trade initiated between ${interaction.user.username} and ${user.username}`) .setDescription(`Trade initiated between ${interaction.user.username} and ${user.username}`)
.setColor(EmbedColours.Grey) .setColor(EmbedColours.Grey)
.setImage("https://media1.tenor.com/m/KkZwKl2AQ2QAAAAd/trade-offer.gif") .setImage("https://media1.tenor.com/m/KkZwKl2AQ2QAAAAd/trade-offer.gif")
.addFields([ .addFields([
{ {
name: "I Receive", name: `${interaction.user.username} is giving`,
value: `${receiveItem.id}: ${receiveItem.name}`, value: `${giveItem.id}: ${giveItem.name}`,
inline: true, inline: true,
}, },
{ {
name: "You Receive", name: `${user.username} is giving`,
value: `${giveItem.id}: ${giveItem.name}`, value: `${receiveItem.id}: ${receiveItem.name}`,
inline: true, inline: true,
}, },
{ {
@ -109,13 +109,13 @@ export default class Trade extends Command {
.setImage("https://media1.tenor.com/m/KkZwKl2AQ2QAAAAd/trade-offer.gif") .setImage("https://media1.tenor.com/m/KkZwKl2AQ2QAAAAd/trade-offer.gif")
.addFields([ .addFields([
{ {
name: "I Receive", name: `${receiveUsername} is giving`,
value: `${receiveCardNumber}: ${receiveCardName}`, value: `${giveCardNumber}: ${giveCardName}`,
inline: true, inline: true,
}, },
{ {
name: "You Receive", name: `${giveUsername} is giving`,
value: `${giveCardNumber}: ${giveCardName}`, value: `${receiveCardNumber}: ${receiveCardName}`,
inline: true, inline: true,
}, },
{ {