mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-12-21 20:08:51 +01:00
fix(arabot): add attachments URL if there is message content
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user