getGuild
-
async getGuild() Promise<
Guild| null> Gets this deployment’s guild from Weeble’s gateway cache, which answers in a few milliseconds instead of a request to Discord. The cached guild only has
id,nameandownerId; every method still works, because they only need the ID. Falls back tofetchGuild()when the guild isn’t cached.const guild = await discord.getGuild(); const member = await guild?.getMember(userId);