mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 13:02:38 +00:00
fix(DataStore): make resolveID work properly (#1927)
This commit is contained in:
parent
63f6247ce5
commit
fc1e78e545
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ class DataStore extends Collection {
|
|||
*/
|
||||
resolveID(idOrInstance) {
|
||||
if (idOrInstance instanceof this.holds) return idOrInstance.id;
|
||||
if (typeof channel === 'string') return idOrInstance;
|
||||
if (typeof idOrInstance === 'string') return idOrInstance;
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue