1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-09-29 12:30:58 -04:00

I didn't like that, so removed inlines.

This commit is contained in:
toast-ts 2023-12-26 17:31:59 +11:00
parent e23ef7b19a
commit 0dddf1b109

View File

@ -87,9 +87,9 @@ export default class MP {
if (!DSS) return console.log('Endpoint failed - status'); if (!DSS) return console.log('Endpoint failed - status');
if (DSS.server.name.length > 0) { if (DSS.server.name.length > 0) {
await interaction.reply({embeds: [new client.embed().setColor(client.config.embedColor).addFields( await interaction.reply({embeds: [new client.embed().setColor(client.config.embedColor).addFields(
{name: 'Name', value: `\`${DSS?.server.name}\``, inline: true}, {name: 'Name', value: `\`${DSS?.server.name}\``},
{name: 'Players', value: `${DSS.slots.used}/${DSS.slots.capacity}`, inline: true}, {name: 'Players', value: `${DSS.slots.used}/${DSS.slots.capacity}`},
{name: 'Map', value: DSS?.server.mapName, inline: true} {name: 'Map', value: DSS?.server.mapName}
).setFooter({text: `Version: ${DSS?.server.version} | Time: ${`${('0'+Math.floor((DSS?.server.dayTime/3600/1000))).slice(-2)}:${('0'+Math.floor((DSS?.server.dayTime/60/1000)%60)).slice(-2)}`}`})]}) ).setFooter({text: `Version: ${DSS?.server.version} | Time: ${`${('0'+Math.floor((DSS?.server.dayTime/3600/1000))).slice(-2)}:${('0'+Math.floor((DSS?.server.dayTime/60/1000)%60)).slice(-2)}`}`})]})
} else return interaction.reply('Server is currently offline.') } else return interaction.reply('Server is currently offline.')
}, },