-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make FetchMessage work for non-bot users #1291
Conversation
This is going to make fetchMessage return a collection for user accounts but not bot accounts, also it will return a random message for user accounts if the message doesn't exist while bot accounts get an unknown message error. |
this isn't consistant, you should map the return collection to the single message as expected |
|
* [WIP] make fetchMessage work for normal users wip * Actual thing * not WIP anymore better docs * oops * better stuff * Update TextBasedChannel.js * Update TextBasedChannel.js * Update TextBasedChannel.js
* [WIP] make fetchMessage work for normal users wip * Actual thing * not WIP anymore better docs * oops * better stuff * Update TextBasedChannel.js * Update TextBasedChannel.js * Update TextBasedChannel.js
Basically just a shortcut to
fetchMessages({ limit: 1, around: ID })
, but it can be useful in case e.g. someone transfers their bot to an user account, or even be useful as a shortcut itself.