Skip to content

Reply to a user with attachments #1085

Closed Answered by CatAnonymous
CatAnonymous asked this question in Q&A
Discussion options

You must be logged in to vote

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);

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by valzargaming
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #1083 on April 03, 2023 22:48.