mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
fix: /bot imports in bot pkg
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import type { DiscordChannel, DiscordGatewayPayload } from '@discordeno/bot'
|
||||
import type { Bot } from '../../index.js'
|
||||
import type { Bot, DiscordChannel, DiscordGatewayPayload } from '../../index.js'
|
||||
|
||||
export async function handleChannelCreate(bot: Bot, payload: DiscordGatewayPayload, shardId: number): Promise<void> {
|
||||
const channel = bot.transformers.channel(bot, {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import type { DiscordActivity } from '@discordeno/bot'
|
||||
import type { Bot } from '../index.js'
|
||||
import type { Bot, DiscordActivity } from '../index.js'
|
||||
import type { Optionalize } from '../optionalize.js'
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { iconHashToBigInt, type DiscordApplication } from '@discordeno/bot'
|
||||
import type { Bot } from '../index.js'
|
||||
import { iconHashToBigInt, type Bot, type DiscordApplication } from '../index.js'
|
||||
import type { Optionalize } from '../optionalize.js'
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import type { DiscordActivity } from '@discordeno/bot'
|
||||
import type { Bot } from '../../index.js'
|
||||
import type { Bot, DiscordActivity } from '../../index.js'
|
||||
import type { Activity } from '../activity.js'
|
||||
|
||||
export function transformActivityToDiscordActivity(bot: Bot, payload: Activity): DiscordActivity {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import type { AllowedMentions, DiscordAllowedMentions } from '@discordeno/bot'
|
||||
import type { Bot } from '../../index.js'
|
||||
import type { AllowedMentions, Bot, DiscordAllowedMentions } from '../../index.js'
|
||||
|
||||
export function transformAllowedMentionsToDiscordAllowedMentions(bot: Bot, mentions: AllowedMentions): DiscordAllowedMentions {
|
||||
return {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { iconBigintToHash, type DiscordApplication } from '@discordeno/bot'
|
||||
import type { Bot } from '../../index.js'
|
||||
import { iconBigintToHash, type Bot, type DiscordApplication } from '../../index.js'
|
||||
import type { Application } from '../application.js'
|
||||
|
||||
export function transformApplicationToDiscordApplication(bot: Bot, payload: Application): DiscordApplication {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import type { DiscordApplicationCommand } from '@discordeno/bot'
|
||||
import type { Bot } from '../../index.js'
|
||||
import type { Bot, DiscordApplicationCommand } from '../../index.js'
|
||||
import type { ApplicationCommand } from '../applicationCommand.js'
|
||||
|
||||
export function transformApplicationCommandToDiscordApplicationCommand(bot: Bot, payload: ApplicationCommand): DiscordApplicationCommand {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import type { DiscordApplicationCommandOption } from '@discordeno/bot'
|
||||
import type { Bot } from '../../index.js'
|
||||
import type { Bot, DiscordApplicationCommandOption } from '../../index.js'
|
||||
import type { ApplicationCommandOption } from '../applicationCommandOption.js'
|
||||
|
||||
export function transformApplicationCommandOptionToDiscordApplicationCommandOption(
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import type { DiscordApplicationCommandOptionChoice } from '@discordeno/bot'
|
||||
import type { Bot } from '../../index.js'
|
||||
import type { Bot, DiscordApplicationCommandOptionChoice } from '../../index.js'
|
||||
import type { ApplicationCommandOptionChoice } from '../applicationCommandOptionChoice.js'
|
||||
|
||||
export function transformApplicationCommandOptionChoiceToDiscordApplicationCommandOptionChoice(
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import type { DiscordGuildApplicationCommandPermissions } from '@discordeno/bot'
|
||||
import type { Bot } from '../../index.js'
|
||||
import type { Bot, DiscordGuildApplicationCommandPermissions } from '../../index.js'
|
||||
import type { ApplicationCommandPermission } from '../applicationCommandPermission.js'
|
||||
|
||||
export function transformApplicationCommandPermissionToDiscordApplicationCommandPermission(
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import type { DiscordAttachment } from '@discordeno/bot'
|
||||
import type { Bot } from '../../index.js'
|
||||
import type { Bot, DiscordAttachment } from '../../index.js'
|
||||
import type { Attachment } from '../attachment.js'
|
||||
|
||||
export function transformAttachmentToDiscordAttachment(bot: Bot, payload: Attachment): DiscordAttachment {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import type { CreateApplicationCommand, DiscordCreateApplicationCommand } from '@discordeno/bot'
|
||||
import { calculateBits } from '@discordeno/utils'
|
||||
import type { Bot } from '../../index.js'
|
||||
import type { Bot, CreateApplicationCommand, DiscordCreateApplicationCommand } from '../../index.js'
|
||||
import { isContextApplicationCommand } from '../../typings.js'
|
||||
|
||||
export function transformCreateApplicationCommandToDiscordCreateApplicationCommand(
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { DiscordEmoji } from '@discordeno/bot'
|
||||
import type { DiscordEmoji } from '@discordeno/types'
|
||||
import { ToggleBitfield } from './ToggleBitfield.js'
|
||||
|
||||
export const EmojiToggle = {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { GuildFeatures, type DiscordGuild } from '@discordeno/bot'
|
||||
import { GuildFeatures, type DiscordGuild } from '@discordeno/types'
|
||||
import { ToggleBitfieldBigint } from './ToggleBitfield.js'
|
||||
|
||||
const featureNames = [
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { DiscordMember } from '@discordeno/bot'
|
||||
import type { DiscordMember } from '@discordeno/types'
|
||||
import { ToggleBitfield } from './ToggleBitfield.js'
|
||||
|
||||
export const MemberToggle = {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { DiscordRole } from '@discordeno/bot'
|
||||
import type { DiscordRole } from '@discordeno/types'
|
||||
import { ToggleBitfield } from './ToggleBitfield.js'
|
||||
|
||||
export const RoleToggle = {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { DiscordUser } from '@discordeno/bot'
|
||||
import type { DiscordUser } from '@discordeno/types'
|
||||
import { ToggleBitfield } from './ToggleBitfield.js'
|
||||
|
||||
export const UserToggle = {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { DiscordVoiceState } from '@discordeno/bot'
|
||||
import type { DiscordVoiceState } from '@discordeno/types'
|
||||
import { ToggleBitfield } from './ToggleBitfield.js'
|
||||
|
||||
export const VoiceStateToggle = {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { iconHashToBigInt } from '@discordeno/bot'
|
||||
import type { DiscordGuildWidget } from '@discordeno/types'
|
||||
import type { Bot } from '../index.js'
|
||||
import { iconHashToBigInt, type Bot } from '../index.js'
|
||||
import type { Optionalize } from '../optionalize.js'
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
|
||||
|
||||
Reference in New Issue
Block a user