cleanup: remove unused members of classes (#3078)

* cleanup: Remove unused members of classes

* typings: Remove hit from Message
This commit is contained in:
Kyra
2019-02-11 20:33:13 +01:00
committed by SpaceEEC
parent c362ba0dd5
commit 0c7a618f10
6 changed files with 0 additions and 12 deletions

View File

@@ -81,8 +81,6 @@ const Messages = {
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_VOICE_CHANNEL_RESOLVE: 'Could not resolve channel to a guild voice channel.',
GUILD_CHANNEL_ORPHAN: 'Could not find a parent to this guild channel.',

View File

@@ -59,7 +59,6 @@ class DMChannel extends Channel {
get lastMessage() {}
get lastPinAt() {}
send() {}
search() {}
startTyping() {}
stopTyping() {}
get typing() {}

View File

@@ -229,7 +229,6 @@ class GroupDMChannel extends Channel {
get lastMessage() {}
get lastPinAt() {}
send() {}
search() {}
startTyping() {}
stopTyping() {}
get typing() {}

View File

@@ -153,12 +153,6 @@ class Message extends Base {
type: data.activity.type,
} : 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
* @type {Message[]}

View File

@@ -127,7 +127,6 @@ class TextChannel extends GuildChannel {
get lastMessage() {}
get lastPinAt() {}
send() {}
search() {}
startTyping() {}
stopTyping() {}
get typing() {}

1
typings/index.d.ts vendored
View File

@@ -661,7 +661,6 @@ declare module 'discord.js' {
public readonly edits: Message[];
public embeds: MessageEmbed[];
public readonly guild: Guild;
public hit: boolean;
public id: Snowflake;
public readonly member: GuildMember;
public mentions: MessageMentions;