Update src/handlers/guild.ts

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
This commit is contained in:
ayntee
2020-11-14 16:33:02 +04:00
committed by GitHub
parent dfba8ec8af
commit 873a20d89d
+1 -1
View File
@@ -694,7 +694,7 @@ export async function deleteGuildTemplate(
const hasPerm = await botHasPermission(guildID, [Permissions.MANAGE_GUILD]); const hasPerm = await botHasPermission(guildID, [Permissions.MANAGE_GUILD]);
if (!hasPerm) throw new Error(Errors.MISSING_MANAGE_GUILD); if (!hasPerm) throw new Error(Errors.MISSING_MANAGE_GUILD);
const deletedTemplate: GuildTemplate = await RequestManager.delete( const deletedTemplate = await RequestManager.delete(
`${endpoints.GUILD_TEMPLATES(guildID)}/${templateCode}`, `${endpoints.GUILD_TEMPLATES(guildID)}/${templateCode}`,
) as any; ) as any;
return structures.createTemplate(deletedTemplate); return structures.createTemplate(deletedTemplate);