mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-03 06:28:53 +00:00
Merge pull request #6 from mariusbegby/update-interaction-editReply
Update interaction editReply
This commit is contained in:
8 files changed
+14
-14
No files matched your search
+3
-3
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user