fix(dispatcher): fixed field names because webstorm sucks
This commit is contained in:
parent
5b3d7a3b09
commit
46973c4830
1 changed files with 5 additions and 5 deletions
|
@ -287,7 +287,7 @@ export namespace filters {
|
||||||
* Filter messages generated by yourself (including Saved Messages)
|
* Filter messages generated by yourself (including Saved Messages)
|
||||||
*/
|
*/
|
||||||
export const me: UpdateFilter<Message, { sender: User }> = (msg) =>
|
export const me: UpdateFilter<Message, { sender: User }> = (msg) =>
|
||||||
(msg.sender instanceof User && msg.sender.isSelf) || msg.outgoing
|
(msg.sender instanceof User && msg.sender.isSelf) || msg.isOutgoing
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Filter messages sent by bots
|
* Filter messages sent by bots
|
||||||
|
@ -308,16 +308,16 @@ export namespace filters {
|
||||||
*
|
*
|
||||||
* Messages sent to yourself (i.e. Saved Messages) are also "incoming"
|
* Messages sent to yourself (i.e. Saved Messages) are also "incoming"
|
||||||
*/
|
*/
|
||||||
export const incoming: UpdateFilter<Message, { outgoing: false }> = (msg) =>
|
export const incoming: UpdateFilter<Message, { isOutgoing: false }> = (msg) =>
|
||||||
!msg.outgoing
|
!msg.isOutgoing
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Filter outgoing messages.
|
* Filter outgoing messages.
|
||||||
*
|
*
|
||||||
* Messages sent to yourself (i.e. Saved Messages) are **not** "outgoing"
|
* Messages sent to yourself (i.e. Saved Messages) are **not** "outgoing"
|
||||||
*/
|
*/
|
||||||
export const outgoing: UpdateFilter<Message, { outgoing: true }> = (msg) =>
|
export const outgoing: UpdateFilter<Message, { isOutgoing: true }> = (msg) =>
|
||||||
msg.outgoing
|
msg.isOutgoing
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Filter messages that are replies to some other message
|
* Filter messages that are replies to some other message
|
||||||
|
|
Loading…
Reference in a new issue