Update src/helpers/guilds/get_widget.ts

This commit is contained in:
ayntee
2021-04-30 19:37:13 +04:00
committed by GitHub
parent 379d332492
commit 2c36797dae
+1 -1
View File
@@ -12,7 +12,7 @@ export async function getWidget(guildId: string, options?: { force: boolean }) {
if (!guild?.widgetEnabled) throw new Error(Errors.GUILD_WIDGET_NOT_ENABLED); if (!guild?.widgetEnabled) throw new Error(Errors.GUILD_WIDGET_NOT_ENABLED);
} }
return await rest.runMethod<DiscordGuildWidget>( return await rest.runMethod(
"get", "get",
`${endpoints.GUILD_WIDGET(guildId)}.json`, `${endpoints.GUILD_WIDGET(guildId)}.json`,
); );