Rename User typing methods

This commit is contained in:
Schuyler Cebulskie
2016-09-12 13:08:11 -04:00
parent 6fb0691a2b
commit 5dd25ac1f1
2 changed files with 4 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@@ -103,7 +103,7 @@ class User {
* @param {ChannelResolvable} channel The channel to check in * @param {ChannelResolvable} channel The channel to check in
* @returns {boolean} * @returns {boolean}
*/ */
isTyping(channel) { typingIn(channel) {
channel = this.client.resolver.resolveChannel(channel); channel = this.client.resolver.resolveChannel(channel);
return channel._typing.has(this.id); return channel._typing.has(this.id);
} }
@@ -113,7 +113,7 @@ class User {
* @param {ChannelResolvable} channel The channel to get the time in * @param {ChannelResolvable} channel The channel to get the time in
* @returns {?Date} * @returns {?Date}
*/ */
typingSince(channel) { typingSinceIn(channel) {
channel = this.client.resolver.resolveChannel(channel); channel = this.client.resolver.resolveChannel(channel);
return channel._typing.has(this.id) ? new Date(channel._typing.get(this.id).since) : null; return channel._typing.has(this.id) ? new Date(channel._typing.get(this.id).since) : null;
} }
@@ -123,7 +123,7 @@ class User {
* @param {ChannelResolvable} channel The channel to get the time in * @param {ChannelResolvable} channel The channel to get the time in
* @returns {number} * @returns {number}
*/ */
typingDuration(channel) { typingDurationIn(channel) {
channel = this.client.resolver.resolveChannel(channel); channel = this.client.resolver.resolveChannel(channel);
return channel._typing.has(this.id) ? channel._typing.get(this.id).elapsedTime : -1; return channel._typing.has(this.id) ? channel._typing.get(this.id).elapsedTime : -1;
} }