mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-05-18 17:14:15 +02:00
fix(arabot): add attachments URL if there is message content
This commit is contained in:
parent
d6a796eebd
commit
e48db66f0c
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user