Merge pull request #6 from mariusbegby/update-interaction-editReply

Update interaction editReply
This commit is contained in:
Marius Begby authored and GitHub committed 2023-07-09 13:56:33 +02:00
commit 1ab7d39862
8 files changed
+14 -14

No files matched your search

+3 -3
View File
@@ -19,7 +19,7 @@ module.exports = {
.setDescription('Toggle various audio filters during playback.'),
run: async ({ interaction }) => {
if (!interaction.member.voice.channel) {
return interaction.editReply({
return await interaction.editReply({
embeds: [
new EmbedBuilder()
.setDescription(
@@ -140,7 +140,7 @@ module.exports = {
// Enable provided filters
queue.filters.ffmpeg.toggle(confirmation.values);
await interaction.editReply({
return await interaction.editReply({
embeds: [
new EmbedBuilder()
.setAuthor({
@@ -166,7 +166,7 @@ module.exports = {
});
} catch (e) {
console.log(e);
await interaction.editReply({
return await interaction.editReply({
embeds: [
new EmbedBuilder()
.setDescription(
+2 -2
View File
@@ -13,7 +13,7 @@ module.exports = {
// todo, allow command to be executed if bot is only member in voice channel
run: async ({ interaction }) => {
if (!interaction.member.voice.channel) {
return interaction.editReply({
return await interaction.editReply({
embeds: [
new EmbedBuilder()
.setDescription(
@@ -41,7 +41,7 @@ module.exports = {
if (!queue.deleted) {
queue.delete();
await interaction.editReply({
return await interaction.editReply({
embeds: [
new EmbedBuilder()
.setDescription(
+1 -1
View File
@@ -9,7 +9,7 @@ module.exports = {
.setDescription('Pause the currently playing track.'),
run: async ({ interaction }) => {
if (!interaction.member.voice.channel) {
return interaction.editReply({
return await interaction.editReply({
embeds: [
new EmbedBuilder()
.setDescription(
+2 -2
View File
@@ -15,7 +15,7 @@ module.exports = {
),
run: async ({ interaction }) => {
if (!interaction.member.voice.channel) {
return interaction.editReply({
return await interaction.editReply({
embeds: [
new EmbedBuilder()
.setDescription(
@@ -59,7 +59,7 @@ module.exports = {
// TODO: Add a check to see if the queue is empty, and if so, add a message to the embed saying that the track is now playing.
// TODO: YouTube thumbnail not shown? Different url than track.thumbnail?
await interaction.editReply({
return await interaction.editReply({
embeds: [
new EmbedBuilder()
.setAuthor({
+3 -3
View File
@@ -15,7 +15,7 @@ module.exports = {
),
run: async ({ interaction }) => {
if (!interaction.member.voice.channel) {
return interaction.editReply({
return await interaction.editReply({
embeds: [
new EmbedBuilder()
.setDescription(
@@ -75,7 +75,7 @@ module.exports = {
let currentTrack = queue.currentTrack;
if (!currentTrack) {
await interaction.editReply({
return await interaction.editReply({
embeds: [
new EmbedBuilder()
.setAuthor({
@@ -95,7 +95,7 @@ module.exports = {
length: 13
});
await interaction.editReply({
return await interaction.editReply({
embeds: [
new EmbedBuilder()
.setAuthor({
+1 -1
View File
@@ -16,7 +16,7 @@ module.exports = {
),
run: async ({ interaction }) => {
if (!interaction.member.voice.channel) {
return interaction.editReply({
return await interaction.editReply({
embeds: [
new EmbedBuilder()
.setDescription(
+1 -1
View File
@@ -17,7 +17,7 @@ module.exports = {
),
run: async ({ interaction }) => {
if (!interaction.member.voice.channel) {
return interaction.editReply({
return await interaction.editReply({
embeds: [
new EmbedBuilder()
.setDescription(
+1 -1
View File
@@ -16,7 +16,7 @@ module.exports = {
),
run: async ({ interaction }) => {
if (!interaction.member.voice.channel) {
return interaction.editReply({
return await interaction.editReply({
embeds: [
new EmbedBuilder()
.setDescription(