mirror of
https://github.com/danbulant/discord.js
synced 2026-07-06 19:50:55 +00:00
cleanup: remove unused members of classes (#3078)
* cleanup: Remove unused members of classes * typings: Remove hit from Message
This commit is contained in:
parent
c362ba0dd5
commit
0c7a618f10
6 changed files with 0 additions and 12 deletions
|
|
@ -81,8 +81,6 @@ const Messages = {
|
||||||
|
|
||||||
PRUNE_DAYS_TYPE: 'Days must be a number',
|
PRUNE_DAYS_TYPE: 'Days must be a number',
|
||||||
|
|
||||||
SEARCH_CHANNEL_TYPE: 'Target must be a TextChannel, DMChannel, GroupDMChannel, or Guild.',
|
|
||||||
|
|
||||||
GUILD_CHANNEL_RESOLVE: 'Could not resolve channel to a guild channel.',
|
GUILD_CHANNEL_RESOLVE: 'Could not resolve channel to a guild channel.',
|
||||||
GUILD_VOICE_CHANNEL_RESOLVE: 'Could not resolve channel to a guild voice channel.',
|
GUILD_VOICE_CHANNEL_RESOLVE: 'Could not resolve channel to a guild voice channel.',
|
||||||
GUILD_CHANNEL_ORPHAN: 'Could not find a parent to this guild channel.',
|
GUILD_CHANNEL_ORPHAN: 'Could not find a parent to this guild channel.',
|
||||||
|
|
|
||||||
|
|
@ -59,7 +59,6 @@ class DMChannel extends Channel {
|
||||||
get lastMessage() {}
|
get lastMessage() {}
|
||||||
get lastPinAt() {}
|
get lastPinAt() {}
|
||||||
send() {}
|
send() {}
|
||||||
search() {}
|
|
||||||
startTyping() {}
|
startTyping() {}
|
||||||
stopTyping() {}
|
stopTyping() {}
|
||||||
get typing() {}
|
get typing() {}
|
||||||
|
|
|
||||||
|
|
@ -229,7 +229,6 @@ class GroupDMChannel extends Channel {
|
||||||
get lastMessage() {}
|
get lastMessage() {}
|
||||||
get lastPinAt() {}
|
get lastPinAt() {}
|
||||||
send() {}
|
send() {}
|
||||||
search() {}
|
|
||||||
startTyping() {}
|
startTyping() {}
|
||||||
stopTyping() {}
|
stopTyping() {}
|
||||||
get typing() {}
|
get typing() {}
|
||||||
|
|
|
||||||
|
|
@ -153,12 +153,6 @@ class Message extends Base {
|
||||||
type: data.activity.type,
|
type: data.activity.type,
|
||||||
} : null;
|
} : null;
|
||||||
|
|
||||||
/**
|
|
||||||
* Whether this message is a hit in a search
|
|
||||||
* @type {?boolean}
|
|
||||||
*/
|
|
||||||
this.hit = typeof data.hit === 'boolean' ? data.hit : null;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The previous versions of the message, sorted with the most recent first
|
* The previous versions of the message, sorted with the most recent first
|
||||||
* @type {Message[]}
|
* @type {Message[]}
|
||||||
|
|
|
||||||
|
|
@ -127,7 +127,6 @@ class TextChannel extends GuildChannel {
|
||||||
get lastMessage() {}
|
get lastMessage() {}
|
||||||
get lastPinAt() {}
|
get lastPinAt() {}
|
||||||
send() {}
|
send() {}
|
||||||
search() {}
|
|
||||||
startTyping() {}
|
startTyping() {}
|
||||||
stopTyping() {}
|
stopTyping() {}
|
||||||
get typing() {}
|
get typing() {}
|
||||||
|
|
|
||||||
1
typings/index.d.ts
vendored
1
typings/index.d.ts
vendored
|
|
@ -661,7 +661,6 @@ declare module 'discord.js' {
|
||||||
public readonly edits: Message[];
|
public readonly edits: Message[];
|
||||||
public embeds: MessageEmbed[];
|
public embeds: MessageEmbed[];
|
||||||
public readonly guild: Guild;
|
public readonly guild: Guild;
|
||||||
public hit: boolean;
|
|
||||||
public id: Snowflake;
|
public id: Snowflake;
|
||||||
public readonly member: GuildMember;
|
public readonly member: GuildMember;
|
||||||
public mentions: MessageMentions;
|
public mentions: MessageMentions;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue