forked from ChrisChrome/weather-bot
whoops
This commit is contained in:
parent
73125f06e7
commit
b7f3ca2f20
4
index.js
4
index.js
|
@ -746,7 +746,7 @@ discord.on("interactionCreate", async (interaction) => {
|
||||||
channel = interaction.member.voice.channel;
|
channel = interaction.member.voice.channel;
|
||||||
if (!channel) return interaction.reply({ content: "You need to be in a voice channel", ephemeral: true });
|
if (!channel) return interaction.reply({ content: "You need to be in a voice channel", ephemeral: true });
|
||||||
// Join the channel and play the stream
|
// Join the channel and play the stream
|
||||||
JoinChannel(channel, url, 2).then((res) => {
|
JoinChannel(channel, url, 2, interaction).then((res) => {
|
||||||
if (res.status) {
|
if (res.status) {
|
||||||
interaction.reply({ content: res.message, ephemeral: true });
|
interaction.reply({ content: res.message, ephemeral: true });
|
||||||
} else {
|
} else {
|
||||||
|
@ -764,7 +764,7 @@ discord.on("interactionCreate", async (interaction) => {
|
||||||
channel = interaction.member.voice.channel;
|
channel = interaction.member.voice.channel;
|
||||||
if (!channel) return interaction.reply({ content: "You need to be in a voice channel", ephemeral: true });
|
if (!channel) return interaction.reply({ content: "You need to be in a voice channel", ephemeral: true });
|
||||||
// Join the channel and play the stream
|
// Join the channel and play the stream
|
||||||
JoinChannel(channel, url, 2).then((res) => {
|
JoinChannel(channel, url, 2, interaction).then((res) => {
|
||||||
if (res.status) {
|
if (res.status) {
|
||||||
interaction.reply({ content: res.message, ephemeral: true });
|
interaction.reply({ content: res.message, ephemeral: true });
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue