mirror of
https://github.com/danbulant/discord.js
synced 2026-06-09 17:52:55 +00:00
Rename User typing methods
This commit is contained in:
parent
6fb0691a2b
commit
5dd25ac1f1
2 changed files with 4 additions and 4 deletions
File diff suppressed because one or more lines are too long
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue