fix: opcode 24 (Interaction search function)
Todo: Rewrite slash command ...
This commit is contained in:
@@ -26,6 +26,14 @@ class RelationshipsManager {
|
||||
this._setup(users);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return array of cache
|
||||
* @returns {Array<{id: Snowflake, type: RelationshipTypes}>}
|
||||
*/
|
||||
toArray() {
|
||||
return this.cache.map((value, key) => ({ id: key, type: RelationshipTypes[value] }));
|
||||
}
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @param {Array<User>} users An array of users to add to the cache
|
||||
|
||||
Reference in New Issue
Block a user