mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 04:10:59 -05:00
Fix message
This commit is contained in:
parent
3b86da0af8
commit
63613059e7
@ -220,7 +220,7 @@ export default {
|
|||||||
if (!endpoint) return console.log('Endpoint failed - pallets');
|
if (!endpoint) return console.log('Endpoint failed - pallets');
|
||||||
const filter = endpoint.vehicles.filter(v=>v.type === 'pallet');
|
const filter = endpoint.vehicles.filter(v=>v.type === 'pallet');
|
||||||
if (filter.length < 1) return interaction.reply('There are no pallets on the server.');
|
if (filter.length < 1) return interaction.reply('There are no pallets on the server.');
|
||||||
else interaction.reply(`There are currently ${filter.length} pallets on the server.\`\`\`\n${Object.values(PalletLibrary(endpoint)).map(t=>`${t.name.padEnd(12)}${t.size}`).join('\n')}\`\`\``)
|
else interaction.reply(`There are currently ${filter.length} pallets on the server. Here\'s the breakdown:\`\`\`\n${Object.values(PalletLibrary(endpoint)).map(t=>`${t.name.padEnd(12)}${t.size}`).join('\n')}\`\`\``)
|
||||||
}
|
}
|
||||||
})[interaction.options.getSubcommand()]();
|
})[interaction.options.getSubcommand()]();
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user