Update src/helpers/guilds/get_widget.ts

This commit is contained in:
ayntee
2021-04-30 19:37:57 +04:00
committed by GitHub
parent 2c36797dae
commit 6b576c75fe
+1
View File
@@ -12,6 +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);
} }
// TODO: add return type
return await rest.runMethod( return await rest.runMethod(
"get", "get",
`${endpoints.GUILD_WIDGET(guildId)}.json`, `${endpoints.GUILD_WIDGET(guildId)}.json`,