docs: Replace FetchOwnerOptions type definition (#6814)

This commit is contained in:
Jiralite
2021-10-12 18:35:16 +01:00
committed by GitHub
parent d57ec7ab68
commit b030130df1
4 changed files with 5 additions and 14 deletions

View File

@@ -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) {