guildinfo: guh
This commit is contained in:
parent
2167ae4725
commit
ee32491dc9
1 changed files with 3 additions and 3 deletions
|
@ -371,7 +371,7 @@ guildinfo.callback = async function (msg, line, args, {nolocal, debug}) {
|
||||||
|
|
||||||
if (features.length > 0) {
|
if (features.length > 0) {
|
||||||
let featuresList = "";
|
let featuresList = "";
|
||||||
let firstFeature = false;
|
let firstFeature = true;
|
||||||
for (const index in features) {
|
for (const index in features) {
|
||||||
const feature = features[index];
|
const feature = features[index];
|
||||||
if (featuresList.length + feature.length + 1 > 1024 || index === features.length - 1) {
|
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(),
|
value: featuresList.trim(),
|
||||||
inline: true,
|
inline: true,
|
||||||
});
|
});
|
||||||
featuresList = "";
|
featuresList = feature + "\n";
|
||||||
if (!firstFeature) firstFeature = true;
|
if (firstFeature === true) firstFeature = false;
|
||||||
} else {
|
} else {
|
||||||
featuresList += feature + "\n";
|
featuresList += feature + "\n";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue