Skip to content

Commit

Permalink
Fix build error
Browse files Browse the repository at this point in the history
I fixed this in the laziest possible way because I can't figure out how
to properly fix this.
  • Loading branch information
AdamLearns committed Aug 1, 2024
1 parent 73eaaf6 commit 4c90261
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 26 deletions.
12 changes: 10 additions & 2 deletions packages/bots/src/discord/commands/utility/twitchcommand.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
import { BotDatabase } from "abbott-database"
import {
SlashCommandBuilder,
type ChatInputCommandInteraction,
inlineCode,
blockQuote,
escapeMarkdown,
hyperlink,
SlashCommandBuilder,
} from "discord.js"

export const data = new SlashCommandBuilder()
// Without this "any", I get this error:
//
// The inferred type of 'data' cannot be named without a reference to
// '.pnpm/@discordjs+builders@1.8.2/node_modules/@discordjs/builders'. This is
// likely not portable. A type annotation is necessary.
//
// I don't feel like figuring this out; I just wanted to update Discord.js to
// fix a bug with links being interpreted as markdown. 😢
export const data: any = new SlashCommandBuilder()
.setName("twitchcommand")
.setDescription(
"Returns the response of a command that you would normally use on Twitch.",
Expand Down
36 changes: 12 additions & 24 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4c90261

Please sign in to comment.