Closed CatAnonymous closed 1 year ago
Have you tried to use the MessageBuilder?
Have you tried to use the MessageBuilder? thanks, it worked fine
$messageBuilder = MessageBuilder::new();
$messageBuilder->setContent('hello, world!');
foreach($images as $image) {
$messageBuilder->addFile($image, 'file.png');
}
//$message->channel->sendMessage($messageBuilder);
$message->reply($messageBuilder);
I'm trying to send a message with attachments
According to a document I found, but it doesn't seem to work