You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
execute: async(interaction,client?: InepClient)=>{constmember=interaction.memberasGuildMember;constchannel=member.voice.channel;try{constquery=interaction.options.getString("song",true);constdistube=client?.distubeasInepTube;awaitinteraction.reply({content: `🎵 Searching for \`${query}\`...`,ephemeral: true,});//This is where the error occuredawaitdistube.play(channelasVoiceBasedChannel,query,{textChannel: interaction.channelasGuildTextBasedChannel,
member,});}catch(error){logger.error(error);}},
# OVEN - BUN Official ImageFROM oven/bun:slim as base
WORKDIR /app
RUN apt-get update && apt-get install -y \
build-essential \
libtool \
automake \
python3 \
ffmpeg \
curl \
&& rm -rf /var/lib/apt/lists/*
RUN curl -fsSL https://deb.nodesource.com/setup_19.x | bash -
RUN apt-get install -y nodejs
# Install dependencies to temp directoryFROM base as build
# Dev dependencies RUN mkdir -p /temp/dev
COPY package.json bun.lockb /temp/dev/
RUN cd /temp/dev && bun install
# Copy node_modules from temp directory to app directoryFROM base as prerelease
COPY --from=build /temp/dev/node_modules node_modules
COPY . .
# Copy the app to the final imageFROM base as release
COPY --from=build /temp/dev/node_modules node_modules
COPY --from=prerelease /app/src/app.ts src/app.ts
COPY --from=prerelease /app/package.json package.json
# USER bunENTRYPOINT [ "bun", "run", "dev" ]
Versions
@discordjs/opus 0.9.0
Node.js 18 -> 19 -> 20 (All of them result the same issue)
Bun v1.1.6
Typescript v5.4.2
Docker ([oven/bun:slim] - Debian GNU/Linux 11)
Issue priority
Medium (should be fixed soon)
The text was updated successfully, but these errors were encountered:
Can you get us a minimum repro sample with bun? Also, make sure @discordjs/opus is trusted in bun (so postinstall scripts run and actually load the appropriate binary files)
Can you get us a minimum repro sample with bun? Also, make sure @discordjs/opus is trusted in bun (so postinstall scripts run and actually load the appropriate binary files)
☝️
as @vladfrangu mentioned, make sure you add @discordjs/opus to your trustedDependencies in package.json.
Also make sure you have these dependencies in your system
Issue description
I can't use the package while using "Bun", which said to compatibility with Node.js v20.
I think
Bun
currently usingnode-v115-napi-v3-${OS}-glibc-2.29
as it primary. If this is the case, can we support this into the package?Step to reproduce:
@discordjs/opus:0.9.0
by commandbun add @discordjs/opus
@discordjs/opus
Code sample
Versions
Issue priority
Medium (should be fixed soon)
The text was updated successfully, but these errors were encountered: