mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 19:28:17 +00:00
Commit from GitHub Actions (Lint)
This commit is contained in:
@@ -12,5 +12,8 @@ export async function getWidget(guildId: string, options?: { force: boolean }) {
|
||||
if (!guild?.widgetEnabled) throw new Error(Errors.GUILD_WIDGET_NOT_ENABLED);
|
||||
}
|
||||
|
||||
return await rest.runMethod<GuildWidgetDetails>("get", `${endpoints.GUILD_WIDGET(guildId)}.json`);
|
||||
return await rest.runMethod<GuildWidgetDetails>(
|
||||
"get",
|
||||
`${endpoints.GUILD_WIDGET(guildId)}.json`,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -3,6 +3,8 @@ import { MessageComponent } from "../../types/messages/components/message_compon
|
||||
import { MessageComponentTypes } from "../../types/messages/components/message_component_types.ts";
|
||||
|
||||
/** A type guard function to tell if it is a action row component */
|
||||
export function isActionRow(component: MessageComponent): component is ActionRow {
|
||||
return component.type === MessageComponentTypes.ActionRow
|
||||
}
|
||||
export function isActionRow(
|
||||
component: MessageComponent,
|
||||
): component is ActionRow {
|
||||
return component.type === MessageComponentTypes.ActionRow;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user