mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 12:21:00 -05:00
Fix message
This commit is contained in:
parent
35641a5afc
commit
39d864b4cf
@ -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