mirror of
https://github.com/HirziDevs/PteroStats.git
synced 2026-03-31 06:24:10 -04:00
fix: embed author
This commit is contained in:
2
index.js
2
index.js
@@ -129,7 +129,7 @@ async function createMessage({ cache, panel, nodes, servers, users }) {
|
||||
if (config.panel_settings.status) embeds.unshift(panelEmbed);
|
||||
|
||||
embeds[0]
|
||||
.setAuthor(config.embed.title ? { name: config.embed.author } : null)
|
||||
.setAuthor(config.embed.author ? { name: config.embed.author } : null)
|
||||
.setDescription(
|
||||
embeds[0].data.description ? config.embed.description.replace("{{time}}", time(new Date(Date.now() + (config.refresh * 1000) + 1000), "R")) + "\n\n" + embeds[0].data.description : config.embed.description.replace("{{time}}", time(new Date(Date.now() + (config.refresh * 1000) + 1000), "R"))
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user