guildinfo: guh

This commit is contained in:
Cynthia Foxwell 2025-04-18 10:49:19 -06:00
parent 2167ae4725
commit ee32491dc9
Signed by: Cynosphere
SSH key fingerprint: SHA256:H3SM8ufP/uxqLwKSH7xY89TDnbR9uOHzjLoBr0tlajk

View file

@ -371,7 +371,7 @@ guildinfo.callback = async function (msg, line, args, {nolocal, debug}) {
if (features.length > 0) {
let featuresList = "";
let firstFeature = false;
let firstFeature = true;
for (const index in features) {
const feature = features[index];
if (featuresList.length + feature.length + 1 > 1024 || index === features.length - 1) {
@ -380,8 +380,8 @@ guildinfo.callback = async function (msg, line, args, {nolocal, debug}) {
value: featuresList.trim(),
inline: true,
});
featuresList = "";
if (!firstFeature) firstFeature = true;
featuresList = feature + "\n";
if (firstFeature === true) firstFeature = false;
} else {
featuresList += feature + "\n";
}