mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-04 14:38:49 +00:00
Update interaction editReply
This commit is contained in:
1 parent
40c5593f24
commit
6e48a83d10
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.'),
|
.setDescription('Toggle various audio filters during playback.'),
|
||||||
run: async ({ interaction }) => {
|
run: async ({ interaction }) => {
|
||||||
if (!interaction.member.voice.channel) {
|
if (!interaction.member.voice.channel) {
|
||||||
return interaction.editReply({
|
return await interaction.editReply({
|
||||||
embeds: [
|
embeds: [
|
||||||
new EmbedBuilder()
|
new EmbedBuilder()
|
||||||
.setDescription(
|
.setDescription(
|
||||||
@@ -140,7 +140,7 @@ module.exports = {
|
|||||||
// Enable provided filters
|
// Enable provided filters
|
||||||
queue.filters.ffmpeg.toggle(confirmation.values);
|
queue.filters.ffmpeg.toggle(confirmation.values);
|
||||||
|
|
||||||
await interaction.editReply({
|
return await interaction.editReply({
|
||||||
embeds: [
|
embeds: [
|
||||||
new EmbedBuilder()
|
new EmbedBuilder()
|
||||||
.setAuthor({
|
.setAuthor({
|
||||||
@@ -166,7 +166,7 @@ module.exports = {
|
|||||||
});
|
});
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e);
|
console.log(e);
|
||||||
await interaction.editReply({
|
return await interaction.editReply({
|
||||||
embeds: [
|
embeds: [
|
||||||
new EmbedBuilder()
|
new EmbedBuilder()
|
||||||
.setDescription(
|
.setDescription(
|
||||||
|
|||||||
+2
-2
@@ -13,7 +13,7 @@ module.exports = {
|
|||||||
// todo, allow command to be executed if bot is only member in voice channel
|
// todo, allow command to be executed if bot is only member in voice channel
|
||||||
run: async ({ interaction }) => {
|
run: async ({ interaction }) => {
|
||||||
if (!interaction.member.voice.channel) {
|
if (!interaction.member.voice.channel) {
|
||||||
return interaction.editReply({
|
return await interaction.editReply({
|
||||||
embeds: [
|
embeds: [
|
||||||
new EmbedBuilder()
|
new EmbedBuilder()
|
||||||
.setDescription(
|
.setDescription(
|
||||||
@@ -41,7 +41,7 @@ module.exports = {
|
|||||||
if (!queue.deleted) {
|
if (!queue.deleted) {
|
||||||
queue.delete();
|
queue.delete();
|
||||||
|
|
||||||
await interaction.editReply({
|
return await interaction.editReply({
|
||||||
embeds: [
|
embeds: [
|
||||||
new EmbedBuilder()
|
new EmbedBuilder()
|
||||||
.setDescription(
|
.setDescription(
|
||||||
|
|||||||
+1
-1
@@ -9,7 +9,7 @@ module.exports = {
|
|||||||
.setDescription('Pause the currently playing track.'),
|
.setDescription('Pause the currently playing track.'),
|
||||||
run: async ({ interaction }) => {
|
run: async ({ interaction }) => {
|
||||||
if (!interaction.member.voice.channel) {
|
if (!interaction.member.voice.channel) {
|
||||||
return interaction.editReply({
|
return await interaction.editReply({
|
||||||
embeds: [
|
embeds: [
|
||||||
new EmbedBuilder()
|
new EmbedBuilder()
|
||||||
.setDescription(
|
.setDescription(
|
||||||
|
|||||||
+2
-2
@@ -15,7 +15,7 @@ module.exports = {
|
|||||||
),
|
),
|
||||||
run: async ({ interaction }) => {
|
run: async ({ interaction }) => {
|
||||||
if (!interaction.member.voice.channel) {
|
if (!interaction.member.voice.channel) {
|
||||||
return interaction.editReply({
|
return await interaction.editReply({
|
||||||
embeds: [
|
embeds: [
|
||||||
new EmbedBuilder()
|
new EmbedBuilder()
|
||||||
.setDescription(
|
.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: 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?
|
// TODO: YouTube thumbnail not shown? Different url than track.thumbnail?
|
||||||
await interaction.editReply({
|
return await interaction.editReply({
|
||||||
embeds: [
|
embeds: [
|
||||||
new EmbedBuilder()
|
new EmbedBuilder()
|
||||||
.setAuthor({
|
.setAuthor({
|
||||||
|
|||||||
+3
-3
@@ -15,7 +15,7 @@ module.exports = {
|
|||||||
),
|
),
|
||||||
run: async ({ interaction }) => {
|
run: async ({ interaction }) => {
|
||||||
if (!interaction.member.voice.channel) {
|
if (!interaction.member.voice.channel) {
|
||||||
return interaction.editReply({
|
return await interaction.editReply({
|
||||||
embeds: [
|
embeds: [
|
||||||
new EmbedBuilder()
|
new EmbedBuilder()
|
||||||
.setDescription(
|
.setDescription(
|
||||||
@@ -75,7 +75,7 @@ module.exports = {
|
|||||||
let currentTrack = queue.currentTrack;
|
let currentTrack = queue.currentTrack;
|
||||||
|
|
||||||
if (!currentTrack) {
|
if (!currentTrack) {
|
||||||
await interaction.editReply({
|
return await interaction.editReply({
|
||||||
embeds: [
|
embeds: [
|
||||||
new EmbedBuilder()
|
new EmbedBuilder()
|
||||||
.setAuthor({
|
.setAuthor({
|
||||||
@@ -95,7 +95,7 @@ module.exports = {
|
|||||||
length: 13
|
length: 13
|
||||||
});
|
});
|
||||||
|
|
||||||
await interaction.editReply({
|
return await interaction.editReply({
|
||||||
embeds: [
|
embeds: [
|
||||||
new EmbedBuilder()
|
new EmbedBuilder()
|
||||||
.setAuthor({
|
.setAuthor({
|
||||||
|
|||||||
+1
-1
@@ -16,7 +16,7 @@ module.exports = {
|
|||||||
),
|
),
|
||||||
run: async ({ interaction }) => {
|
run: async ({ interaction }) => {
|
||||||
if (!interaction.member.voice.channel) {
|
if (!interaction.member.voice.channel) {
|
||||||
return interaction.editReply({
|
return await interaction.editReply({
|
||||||
embeds: [
|
embeds: [
|
||||||
new EmbedBuilder()
|
new EmbedBuilder()
|
||||||
.setDescription(
|
.setDescription(
|
||||||
|
|||||||
+1
-1
@@ -17,7 +17,7 @@ module.exports = {
|
|||||||
),
|
),
|
||||||
run: async ({ interaction }) => {
|
run: async ({ interaction }) => {
|
||||||
if (!interaction.member.voice.channel) {
|
if (!interaction.member.voice.channel) {
|
||||||
return interaction.editReply({
|
return await interaction.editReply({
|
||||||
embeds: [
|
embeds: [
|
||||||
new EmbedBuilder()
|
new EmbedBuilder()
|
||||||
.setDescription(
|
.setDescription(
|
||||||
|
|||||||
+1
-1
@@ -16,7 +16,7 @@ module.exports = {
|
|||||||
),
|
),
|
||||||
run: async ({ interaction }) => {
|
run: async ({ interaction }) => {
|
||||||
if (!interaction.member.voice.channel) {
|
if (!interaction.member.voice.channel) {
|
||||||
return interaction.editReply({
|
return await interaction.editReply({
|
||||||
embeds: [
|
embeds: [
|
||||||
new EmbedBuilder()
|
new EmbedBuilder()
|
||||||
.setDescription(
|
.setDescription(
|
||||||
|
|||||||
Reference in new issue
Block a user