Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
function getGuildTemplate
import { getGuildTemplate } from "https://deno.land/x/discordeno@17.2.0/plugins/cache/deps.ts";

Gets a template by its code.

Parameters

bot: Bot
  • The bot instance to use to make the request.
templateCode: string
  • The code of the template to get.

Returns

Promise<Template>

An instance of Template.