Refactor waitForMessage to waitForPacket (since it returns a packet) and add a new waitForMessage which return the MessageBase, which makes usage a little tidier with async.
This commit is contained in:
8
dist/classes/UUID.js
vendored
8
dist/classes/UUID.js
vendored
@@ -49,6 +49,14 @@ class UUID {
|
||||
const binary = Buffer.from(shortened, 'hex');
|
||||
binary.copy(buf, pos, 0);
|
||||
}
|
||||
equals(cmp) {
|
||||
if (typeof cmp === 'string') {
|
||||
return (cmp === this.mUUID);
|
||||
}
|
||||
else {
|
||||
return cmp.equals(this.mUUID);
|
||||
}
|
||||
}
|
||||
}
|
||||
exports.UUID = UUID;
|
||||
//# sourceMappingURL=UUID.js.map
|
||||
Reference in New Issue
Block a user