mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-03 09:20:08 +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;
|
||||
}
|
||||
|
||||
@@ -21,4 +21,4 @@ export interface GuildWidgetDetails {
|
||||
}
|
||||
|
||||
/** https://discord.com/developers/docs/resources/guild#get-guild-widget-example-get-guild-widget */
|
||||
export type DiscordGuildWidget = SnakeCasedPropertiesDeep<GuildWidgetDetails>;
|
||||
export type DiscordGuildWidget = SnakeCasedPropertiesDeep<GuildWidgetDetails>;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
export enum DiscordInteractionTypes {
|
||||
Ping = 1,
|
||||
ApplicationCommand,
|
||||
Button
|
||||
Button,
|
||||
}
|
||||
|
||||
export type InteractionTypes = DiscordInteractionTypes;
|
||||
|
||||
@@ -8,4 +8,4 @@ export interface ActionRow {
|
||||
components: ButtonComponent[];
|
||||
}
|
||||
|
||||
export type DiscordActionRow = SnakeCasedPropertiesDeep<ActionRow>;
|
||||
export type DiscordActionRow = SnakeCasedPropertiesDeep<ActionRow>;
|
||||
|
||||
Reference in New Issue
Block a user