Add a warning message to the text channel

This commit is contained in:
Christopher Cookman 2024-03-26 23:37:50 -06:00
parent dd73aaf35c
commit 4d354a3661
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -189,6 +189,15 @@ client.on("voiceStateUpdate", async (oldState, newState) => {
type: Discord.ChannelType.GuildVoice, type: Discord.ChannelType.GuildVoice,
parent: row.voice_category_id parent: row.voice_category_id
}).then((channel) => { }).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 // Move the user to the new channel
newState.setChannel(channel); newState.setChannel(channel);
// Update the database // Update the database