mirror of
https://github.com/danbulant/discord.js
synced 2026-05-24 20:42:27 +00:00
Add string guild resolving (#587)
This commit is contained in:
parent
d97ce2e181
commit
02324fbecb
1 changed files with 5 additions and 0 deletions
|
|
@ -66,6 +66,11 @@ class ClientDataResolver {
|
|||
if (guild instanceof Guild) {
|
||||
return guild;
|
||||
}
|
||||
|
||||
if (typeof guild === 'string') {
|
||||
return this.client.guilds.get(guild);
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue