mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-07 14:55:40 +02:00
raw event
This commit is contained in:
@@ -61,14 +61,6 @@ class Util {
|
||||
return arr;
|
||||
}
|
||||
|
||||
static promisifyAll(obj, suffix = 'Async') {
|
||||
for (const key of Object.keys(obj)) {
|
||||
if (typeof obj[key] !== 'function') continue;
|
||||
obj[`${key}${suffix}`] = promisify(obj[key]);
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
static cleanXML(text) {
|
||||
return text
|
||||
.replace(/<br \/>/g, '')
|
||||
|
||||
Reference in New Issue
Block a user