From 4d354a3661c5befa3f2f9f36df781480a9dfe631 Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Tue, 26 Mar 2024 23:37:50 -0600 Subject: [PATCH] Add a warning message to the text channel --- index.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/index.js b/index.js index e2081af..589a419 100644 --- a/index.js +++ b/index.js @@ -189,6 +189,15 @@ client.on("voiceStateUpdate", async (oldState, newState) => { type: Discord.ChannelType.GuildVoice, parent: row.voice_category_id }).then((channel) => { + channel.send({ + embeds: [ + { + color: 0xff0000, + title: "Temporary Voice Channel", + description: `This is a temporary voice channel created by ${newState.member.user.tag}.\nThis voice channel and the messages within will be deleted when the channel is empty!`, + } + ] + }); // Move the user to the new channel newState.setChannel(channel); // Update the database