Combine init actions
This commit is contained in:
parent
02e9df865e
commit
d844f6ee1a
13 changed files with 228 additions and 232 deletions
|
@ -34,6 +34,10 @@ function isString(s, maxLength) {
|
|||
return true;
|
||||
}
|
||||
|
||||
export function isDM({ from, to }) {
|
||||
return !to && from?.indexOf('.') === -1 && !isChannel(from);
|
||||
}
|
||||
|
||||
export function trimPrefixChar(str, char) {
|
||||
if (!isString(str)) {
|
||||
return str;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue