mirror of
https://github.com/danbulant/discord.js
synced 2026-05-26 05:22:15 +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
|
||||
* @returns {boolean}
|
||||
*/
|
||||
isTyping(channel) {
|
||||
typingIn(channel) {
|
||||
channel = this.client.resolver.resolveChannel(channel);
|
||||
return channel._typing.has(this.id);
|
||||
}
|
||||
|
|
@ -113,7 +113,7 @@ class User {
|
|||
* @param {ChannelResolvable} channel The channel to get the time in
|
||||
* @returns {?Date}
|
||||
*/
|
||||
typingSince(channel) {
|
||||
typingSinceIn(channel) {
|
||||
channel = this.client.resolver.resolveChannel(channel);
|
||||
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
|
||||
* @returns {number}
|
||||
*/
|
||||
typingDuration(channel) {
|
||||
typingDurationIn(channel) {
|
||||
channel = this.client.resolver.resolveChannel(channel);
|
||||
return channel._typing.has(this.id) ? channel._typing.get(this.id).elapsedTime : -1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue