mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 11:28:15 +00:00
Update src/helpers/guilds/get_widget.ts
This commit is contained in:
@@ -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`,
|
||||||
|
|||||||
Reference in New Issue
Block a user