Skip to content

Replying to a message without event #1188

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

You must be logged in to vote

Basically have the [messageid] stored and I want to be able to reply back it in the future but having now luck with the following:

$guild = $discord->guilds->get('id', [guildid]);
$channel = $guild->channels->get('id', [channelid]);
$channel->messsages->fetch([messageid], true)->done(function (Message $message) {
   $message->reply("Reply to [messageid]");
});

$guild and $channel are returning values, but it never returns the promise. Would love some insight into how this should be fone.

You have typo with triple s in messages

$guild = $discord->guilds->get('id', [guildid]);
$channel = $guild->channels->get('id', [channelid]);
$channel->messages->fetch([messageid], true)->then(function (

Replies: 1 comment

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
awaiting confirmation The issue has been resolved, but awaits confirmation from the creator to confirm.
2 participants