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, name and ownerId; every method still works, because they only need the ID. Falls back to fetchGuild() when the guild isn’t cached.

const guild = await discord.getGuild();
const member = await guild?.getMember(userId);