Compare commits
No commits in common. "16842d71275d0dd66eaf49333f58c234a14ba199" and "e235f064d80a9fe362eeae99a296ae91e7cadae9" have entirely different histories.
16842d7127
...
e235f064d8
2 changed files with 1 additions and 6 deletions
|
@ -43,7 +43,7 @@ export default {
|
||||||
.setTimestamp();
|
.setTimestamp();
|
||||||
|
|
||||||
user.send({ embeds: [Embed] });
|
user.send({ embeds: [Embed] });
|
||||||
return interaction.reply({ content: `DM sent to ${user.username}` });
|
return interaction.reply({ content: `DM sent to ${user.username}`, ephemeral: true });
|
||||||
/*
|
/*
|
||||||
const Attachment = (message.attachments).array();
|
const Attachment = (message.attachments).array();
|
||||||
if (Attachment[0]) {
|
if (Attachment[0]) {
|
||||||
|
|
|
@ -18,11 +18,6 @@ export default {
|
||||||
cooldown: 86400,
|
cooldown: 86400,
|
||||||
async execute(interaction, args) {
|
async execute(interaction, args) {
|
||||||
const url = args.url;
|
const url = args.url;
|
||||||
// This is rather rudementary, a proper way would be using yt-dlp to know if it is a playlist
|
|
||||||
if (url.includes('list=')) {
|
|
||||||
return interaction.reply({ content: '❌ Playlists are not allowed!', ephemeral: true });
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!await utils.stringIsAValidurl(url)) {
|
if (!await utils.stringIsAValidurl(url)) {
|
||||||
console.error(`Not a url!!! ${url}`);
|
console.error(`Not a url!!! ${url}`);
|
||||||
return interaction.reply({ content: '❌ This does not look like a valid url!', ephemeral: true });
|
return interaction.reply({ content: '❌ This does not look like a valid url!', ephemeral: true });
|
||||||
|
|
Loading…
Reference in a new issue