fix(arabot): add attachments URL if there is message content

This commit is contained in:
smyalygames 2023-03-09 19:26:33 +00:00
parent d6a796eebd
commit e48db66f0c

View File

@ -59,6 +59,9 @@ export class Suggestions extends Listener {
if (message.content.length > 0) {
suggestion.setDescription(message.content);
if (attachments.length > 0) {
suggestion.setFields({ name: 'Attachments', value: attachmentsString });
}
} else if (attachments.length > 0) {
suggestion.setFields({ name: 'Attachments', value: attachmentsString });
} else {