mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 10:03:31 +01:00
docs: Replace FetchOwnerOptions type definition (#6814)
This commit is contained in:
@@ -88,7 +88,7 @@ class ChannelManager extends CachedManager {
|
||||
*/
|
||||
|
||||
/**
|
||||
* Options for fetching a channel from discord
|
||||
* Options for fetching a channel from Discord
|
||||
* @typedef {BaseFetchOptions} FetchChannelOptions
|
||||
* @property {boolean} [allowUnknownGuild=false] Allows the channel to be returned even if the guild is not in cache,
|
||||
* it will not be cached. <warn>Many of the properties and methods on the returned channel will throw errors</warn>
|
||||
|
||||
@@ -486,17 +486,10 @@ class Guild extends AnonymousGuild {
|
||||
return this.discoverySplash && this.client.rest.cdn.DiscoverySplash(this.id, this.discoverySplash, format, size);
|
||||
}
|
||||
|
||||
/**
|
||||
* Options used to fetch the owner of a guild or a thread.
|
||||
* @typedef {Object} FetchOwnerOptions
|
||||
* @property {boolean} [cache=true] Whether or not to cache the fetched member
|
||||
* @property {boolean} [force=false] Whether to skip the cache check and request the API
|
||||
*/
|
||||
|
||||
/**
|
||||
* Fetches the owner of the guild.
|
||||
* If the member object isn't needed, use {@link Guild#ownerId} instead.
|
||||
* @param {FetchOwnerOptions} [options] The options for fetching the member
|
||||
* @param {BaseFetchOptions} [options] The options for fetching the member
|
||||
* @returns {Promise<GuildMember>}
|
||||
*/
|
||||
fetchOwner(options) {
|
||||
|
||||
@@ -236,7 +236,7 @@ class ThreadChannel extends Channel {
|
||||
/**
|
||||
* Fetches the owner of this thread. If the thread member object isn't needed,
|
||||
* use {@link ThreadChannel#ownerId} instead.
|
||||
* @param {FetchOwnerOptions} [options] The options for fetching the member
|
||||
* @param {BaseFetchOptions} [options] The options for fetching the member
|
||||
* @returns {Promise<?ThreadMember>}
|
||||
*/
|
||||
async fetchOwner({ cache = true, force = false } = {}) {
|
||||
|
||||
Reference in New Issue
Block a user