mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 17:13:31 +01:00
docs: Fix some small typos or "missing" docs (#1943)
* Fix documentation for GuildAuditLogEntry.target * Update documentation for CategoryChannel#children * Add EntryTarget for audit logs I've done this to "fulfill" devsneks request while also showing all the possible results for the target of an AuditLogEntry * Oops Eslint * Private timeout sets gets set by BaseClient not WebhookClient * Fix the "Missing Docs" for Presence#activity * Small doc inconsistency Array<Number> instead of Array<number> for Activity * Client#emojis is an EmojiStore not a Collection * Document ClientPresenceStore Just so its clickable through the wiki, nothing else is documented * Small fix for BaseClient#setInterval You don't wait before executing, you execute every X ms * GuildChannelResolvable takes a GuildChannel/Snowflake * Typo in UserResolvable * Another typo for UserResolvable * Add the number to the Status and VoiceStatus docs Its probably not needed, but just so the user knows what each number means, its now documented.
This commit is contained in:
@@ -4,6 +4,11 @@ const { ActivityTypes, OPCodes } = require('../util/Constants');
|
||||
const { Presence } = require('../structures/Presence');
|
||||
const { TypeError } = require('../errors');
|
||||
|
||||
/**
|
||||
* Stores the client presence and other presences.
|
||||
* @extends {PresenceStore}
|
||||
* @private
|
||||
*/
|
||||
class ClientPresenceStore extends PresenceStore {
|
||||
constructor(...args) {
|
||||
super(...args);
|
||||
|
||||
@@ -21,10 +21,10 @@ class GuildChannelStore extends DataStore {
|
||||
}
|
||||
|
||||
/**
|
||||
* Data that can be resolved to give a Channel object. This can be:
|
||||
* Data that can be resolved to give a Guild Channel object. This can be:
|
||||
* * A GuildChannel object
|
||||
* * A Snowflake
|
||||
* @typedef {Channel|Snowflake} GuildChannelResolvable
|
||||
* @typedef {GuildChannel|Snowflake} GuildChannelResolvable
|
||||
*/
|
||||
|
||||
/**
|
||||
|
||||
@@ -22,7 +22,7 @@ class GuildMemberStore extends DataStore {
|
||||
* Data that resolves to give a GuildMember object. This can be:
|
||||
* * A GuildMember object
|
||||
* * A User resolvable
|
||||
* @typedef {GuildMember|UserResolveable} GuildMemberResolvable
|
||||
* @typedef {GuildMember|UserResolvable} GuildMemberResolvable
|
||||
*/
|
||||
|
||||
/**
|
||||
|
||||
@@ -19,9 +19,9 @@ class PresenceStore extends DataStore {
|
||||
/**
|
||||
* Data that can be resolved to a Presence object. This can be:
|
||||
* * A Presence
|
||||
* * A UserResolveable
|
||||
* * A UserResolvable
|
||||
* * A Snowflake
|
||||
* @typedef {Presence|UserResolveable|Snowflake} PresenceResolvable
|
||||
* @typedef {Presence|UserResolvable|Snowflake} PresenceResolvable
|
||||
*/
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user