question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

channel.fetchMessages()?

See original GitHub issue

Is your feature request related to a problem? Please describe. I would like my bot to be able to fetch messages in a specific channel, for things like reaction roles, confirmation messages, and the like. Partials are out of the question because the massive overhaul required would (imho) not be worth it for something like that. Describe the ideal solution I saw on some stackoverflow posts that there used to be a channel.fetchMessages function to get all the messages in a channel? I dont know anything about it except for what it does.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
ExperiBasscommented, May 28, 2020

this is a feature request, im requesting that channel.fetchMessages be added back to the API.

2reactions
NotSugdencommented, May 29, 2020

now why the hell did i think that was something else

possibly because you did not read the docs thoroughly?

Read more comments on GitHub >

github_iconTop Results From Across the Web

UnhandledPromiseRejectionWar...
const fetched = await message.channel.fetchMessages({limit: deleteCount});. Anyone know how to fix that? i am not good with the new updates.
Read more >
channel.fetchmessages Code Example
Answers related to “channel.fetchmessages” · fetch patch method · js fetch send json · fetch api post req · fetch memes from redit...
Read more >
fetchMessages is not a function · Issue #2676 - GitHub
Please describe the problem you are having in as much detail as possible: fetchMessages is not a function after update to dev for...
Read more >
Message history | PubNub Docs
Use the fetchMessages method to fetch messages from storage on one or more channels. This method returns messages that were published before ...
Read more >
Javascript – UnhandledPromiseRejectionWarning: TypeError ...
i get this error: UnhandledPromiseRejectionWarning: TypeError: message.channel.fetchMessages is not a function. on this line
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found