mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 00:53:31 +01:00
feat: bypass cache check with forceFetch param (#4592)
This commit is contained in:
@@ -90,10 +90,11 @@ class Channel extends Base {
|
||||
|
||||
/**
|
||||
* Fetches this channel.
|
||||
* @param {boolean} [force=false] Whether to skip the cache check and request the API
|
||||
* @returns {Promise<Channel>}
|
||||
*/
|
||||
fetch() {
|
||||
return this.client.channels.fetch(this.id, true);
|
||||
fetch(force = false) {
|
||||
return this.client.channels.fetch(this.id, true, force);
|
||||
}
|
||||
|
||||
static create(client, data, guild) {
|
||||
|
||||
Reference in New Issue
Block a user