Merge branch 'buttons-dropdowns' of https://github.com/discordeno/discordeno into buttons-dropdowns

This commit is contained in:
Skillz
2021-05-01 10:19:32 -04:00
5 changed files with 12 additions and 7 deletions
+4 -1
View File
@@ -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`,
);
}
+5 -3
View File
@@ -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;
}