mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 20:43:30 +01:00
Rename User typing methods
This commit is contained in:
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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user