mirror of
https://github.com/veganhacktivists/arabot.git
synced 2026-01-07 04:08:50 +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) {
|
if (message.content.length > 0) {
|
||||||
suggestion.setDescription(message.content);
|
suggestion.setDescription(message.content);
|
||||||
|
if (attachments.length > 0) {
|
||||||
|
suggestion.setFields({ name: 'Attachments', value: attachmentsString });
|
||||||
|
}
|
||||||
} else if (attachments.length > 0) {
|
} else if (attachments.length > 0) {
|
||||||
suggestion.setFields({ name: 'Attachments', value: attachmentsString });
|
suggestion.setFields({ name: 'Attachments', value: attachmentsString });
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user