mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 20:43:30 +01:00
More docs cleanup
This commit is contained in:
@@ -165,7 +165,7 @@ class VoiceConnection extends EventEmitter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the token and endpoint required to connect to the the voice servers.
|
* Set the token and endpoint required to connect to the voice servers.
|
||||||
* @param {string} token The voice token
|
* @param {string} token The voice token
|
||||||
* @param {string} endpoint The voice endpoint
|
* @param {string} endpoint The voice endpoint
|
||||||
* @returns {void}
|
* @returns {void}
|
||||||
|
|||||||
@@ -47,8 +47,8 @@ class GroupDMChannel extends Channel {
|
|||||||
this.name = data.name;
|
this.name = data.name;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A hash of the Group DM icon.
|
* A hash of this Group DM icon
|
||||||
* @type {string}
|
* @type {?string}
|
||||||
*/
|
*/
|
||||||
this.icon = data.icon;
|
this.icon = data.icon;
|
||||||
|
|
||||||
@@ -70,11 +70,13 @@ class GroupDMChannel extends Channel {
|
|||||||
*/
|
*/
|
||||||
this.applicationID = data.application_id;
|
this.applicationID = data.application_id;
|
||||||
|
|
||||||
/**
|
if (data.nicks) {
|
||||||
* Nicknames for group members
|
/**
|
||||||
* @type {?Collection<Snowflake, string>}
|
* Nicknames for group members
|
||||||
*/
|
* @type {?Collection<Snowflake, string>}
|
||||||
if (data.nicks) this.nicks = new Collection(data.nicks.map(n => [n.id, n.nick]));
|
*/
|
||||||
|
this.nicks = new Collection(data.nicks.map(n => [n.id, n.nick]));
|
||||||
|
}
|
||||||
|
|
||||||
if (!this.recipients) {
|
if (!this.recipients) {
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ const Snowflake = require('../util/Snowflake');
|
|||||||
class Guild {
|
class Guild {
|
||||||
constructor(client, data) {
|
constructor(client, data) {
|
||||||
/**
|
/**
|
||||||
* The client that created the instance of the the guild
|
* The client that created the instance of the guild
|
||||||
* @name Guild#client
|
* @name Guild#client
|
||||||
* @type {Client}
|
* @type {Client}
|
||||||
* @readonly
|
* @readonly
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ class MessageMentions {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Any channels that were mentioned
|
* Any channels that were mentioned
|
||||||
* @type {?Collection<Snowflake, GuildChannel>}
|
* @type {Collection<Snowflake, GuildChannel>}
|
||||||
* @readonly
|
* @readonly
|
||||||
*/
|
*/
|
||||||
get channels() {
|
get channels() {
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ const Snowflake = require('../util/Snowflake');
|
|||||||
class User {
|
class User {
|
||||||
constructor(client, data) {
|
constructor(client, data) {
|
||||||
/**
|
/**
|
||||||
* The client that created the instance of the the user
|
* The client that created the instance of the user
|
||||||
* @name User#client
|
* @name User#client
|
||||||
* @type {}
|
* @type {}
|
||||||
* @readonly
|
* @readonly
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ class Webhook {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* The avatar for the webhook
|
* The avatar for the webhook
|
||||||
* @type {string}
|
* @type {?string}
|
||||||
*/
|
*/
|
||||||
this.avatar = data.avatar;
|
this.avatar = data.avatar;
|
||||||
|
|
||||||
|
|||||||
@@ -555,8 +555,8 @@ exports.UserSettingsMap = {
|
|||||||
|
|
||||||
explicit_content_filter: function explicitContentFilter(type) { // eslint-disable-line func-name-matching
|
explicit_content_filter: function explicitContentFilter(type) { // eslint-disable-line func-name-matching
|
||||||
/**
|
/**
|
||||||
* Safe direct messaging; force people's messages with images to be scanned before they are sent to you
|
* Safe direct messaging; force people's messages with images to be scanned before they are sent to you.
|
||||||
* one of `DISABLED`, `NON_FRIENDS`, `FRIENDS_AND_NON_FRIENDS`
|
* One of `DISABLED`, `NON_FRIENDS`, `FRIENDS_AND_NON_FRIENDS`
|
||||||
* @name ClientUserSettings#explicitContentFilter
|
* @name ClientUserSettings#explicitContentFilter
|
||||||
* @type {string}
|
* @type {string}
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user