PAIDODAMASTIS
PAIDODAMASTIS
DIAdiscord.js - Imagine an app
Created by PAIDODAMASTIS on 2/7/2024 in #djs-questions
i want to put the executor name in the embed ban message but i have an error
i just want to tag him i dont want him to be an option i get it
18 replies
DIAdiscord.js - Imagine an app
Created by PAIDODAMASTIS on 2/7/2024 in #djs-questions
i want to put the executor name in the embed ban message but i have an error
yeah i get it i am stupid
18 replies
DIAdiscord.js - Imagine an app
Created by PAIDODAMASTIS on 2/7/2024 in #djs-questions
i want to put the executor name in the embed ban message but i have an error
i get it
18 replies
DIAdiscord.js - Imagine an app
Created by PAIDODAMASTIS on 2/7/2024 in #djs-questions
i want to put the executor name in the embed ban message but i have an error
ohhhh
18 replies
DIAdiscord.js - Imagine an app
Created by PAIDODAMASTIS on 2/7/2024 in #djs-questions
i want to put the executor name in the embed ban message but i have an error
hold on
18 replies
DIAdiscord.js - Imagine an app
Created by PAIDODAMASTIS on 2/7/2024 in #djs-questions
i want to put the executor name in the embed ban message but i have an error
msg
18 replies
DIAdiscord.js - Imagine an app
Created by PAIDODAMASTIS on 2/7/2024 in #djs-questions
i want to put the executor name in the embed ban message but i have an error
so i can tag him in the mbed
18 replies
DIAdiscord.js - Imagine an app
Created by PAIDODAMASTIS on 2/7/2024 in #djs-questions
i want to put the executor name in the embed ban message but i have an error
i want to get the executor username
18 replies
DIAdiscord.js - Imagine an app
Created by PAIDODAMASTIS on 2/7/2024 in #djs-questions
i want to put the executor name in the embed ban message but i have an error
const { SlashCommandBuilder, PermissionFlagsBits } = require('discord.js');

module.exports = {
data: new SlashCommandBuilder()
.setName('ban')
.setDescription('Select a member and ban them.')
.addUserOption(option =>
option
.setName('target')
.setDescription('The member to ban')
.setRequired(true))
.addStringOption(option =>
option
.setName('reason')
.setDescription('The reason for banning'))
.setDefaultMemberPermissions(PermissionFlagsBits.BanMembers)
.setDMPermission(false),

async execute(interaction) {
try{

const target = interaction.options.getUser('target');
const reason = interaction.options.getString('reason') ?? 'No reason provided';
const executor = interaction.options.getUser('executor');

const title = '**✅ User Banned Successfully**';
const description = `\`\`\` Banned ${target.username} executor: ${executor.username} reason: ${reason}\`\`\``;

await interaction.guild.members.ban(target)
.then(() => {
const embed = {
color: 0x0099ff,
title: title,
description: description,
timestamp: new Date(),
};
interaction.reply({ embeds: [embed] });
})
} catch (error) {
console.error(error);


const title = ('**❌ Command Failed**');
const description = `\`\`\`Unable to Ban the member, check my permissions and try again\`\`\``


const embed = {
color: 0xFF0000,
title: title,
description: description,
timestamp: new Date(),
};

return interaction.reply({ embeds: [embed] });


}
},
};
const { SlashCommandBuilder, PermissionFlagsBits } = require('discord.js');

module.exports = {
data: new SlashCommandBuilder()
.setName('ban')
.setDescription('Select a member and ban them.')
.addUserOption(option =>
option
.setName('target')
.setDescription('The member to ban')
.setRequired(true))
.addStringOption(option =>
option
.setName('reason')
.setDescription('The reason for banning'))
.setDefaultMemberPermissions(PermissionFlagsBits.BanMembers)
.setDMPermission(false),

async execute(interaction) {
try{

const target = interaction.options.getUser('target');
const reason = interaction.options.getString('reason') ?? 'No reason provided';
const executor = interaction.options.getUser('executor');

const title = '**✅ User Banned Successfully**';
const description = `\`\`\` Banned ${target.username} executor: ${executor.username} reason: ${reason}\`\`\``;

await interaction.guild.members.ban(target)
.then(() => {
const embed = {
color: 0x0099ff,
title: title,
description: description,
timestamp: new Date(),
};
interaction.reply({ embeds: [embed] });
})
} catch (error) {
console.error(error);


const title = ('**❌ Command Failed**');
const description = `\`\`\`Unable to Ban the member, check my permissions and try again\`\`\``


const embed = {
color: 0xFF0000,
title: title,
description: description,
timestamp: new Date(),
};

return interaction.reply({ embeds: [embed] });


}
},
};
18 replies
DIAdiscord.js - Imagine an app
Created by PAIDODAMASTIS on 2/7/2024 in #djs-questions
i want to put the executor name in the embed ban message but i have an error
here is my code
18 replies
DIAdiscord.js - Imagine an app
Created by v.dll on 1/30/2024 in #djs-questions
Slash command working but still replying with "The application did not respond"
Ok bro I was just helping
63 replies
DIAdiscord.js - Imagine an app
Created by v.dll on 1/30/2024 in #djs-questions
Slash command working but still replying with "The application did not respond"
.
63 replies
DIAdiscord.js - Imagine an app
Created by v.dll on 1/30/2024 in #djs-questions
Slash command working but still replying with "The application did not respond"
So I send the code bro
63 replies
DIAdiscord.js - Imagine an app
Created by v.dll on 1/30/2024 in #djs-questions
Slash command working but still replying with "The application did not respond"
He said he wanted to send embed with slash commands
63 replies
DIAdiscord.js - Imagine an app
Created by v.dll on 1/30/2024 in #djs-questions
Slash command working but still replying with "The application did not respond"
for description and title
63 replies
DIAdiscord.js - Imagine an app
Created by v.dll on 1/30/2024 in #djs-questions
Slash command working but still replying with "The application did not respond"
this also gives you an option
63 replies
DIAdiscord.js - Imagine an app
Created by v.dll on 1/30/2024 in #djs-questions
Slash command working but still replying with "The application did not respond"
const { SlashCommandBuilder } = require('discord.js');

module.exports = {
data: new SlashCommandBuilder()
.setName('embed')
.setDescription('Create an embed')
.addStringOption(option =>
option.setName('title')
.setDescription('Title of the embed')
.setRequired(true)
)
.addStringOption(option =>
option.setName('description')
.setDescription('Description of the embed')
.setRequired(true)
),
async execute(interaction) {
const title = interaction.options.getString('title');
const description = interaction.options.getString('description');


const embed = {
color: 0x0099ff,
title: title,
description: description,
};


await interaction.reply({ embeds: [embed] });
},
};
const { SlashCommandBuilder } = require('discord.js');

module.exports = {
data: new SlashCommandBuilder()
.setName('embed')
.setDescription('Create an embed')
.addStringOption(option =>
option.setName('title')
.setDescription('Title of the embed')
.setRequired(true)
)
.addStringOption(option =>
option.setName('description')
.setDescription('Description of the embed')
.setRequired(true)
),
async execute(interaction) {
const title = interaction.options.getString('title');
const description = interaction.options.getString('description');


const embed = {
color: 0x0099ff,
title: title,
description: description,
};


await interaction.reply({ embeds: [embed] });
},
};
63 replies
DIAdiscord.js - Imagine an app
Created by v.dll on 1/30/2024 in #djs-questions
Slash command working but still replying with "The application did not respond"
wis try this code for an embed
63 replies
DIAdiscord.js - Imagine an app
Created by v.dll on 1/30/2024 in #djs-questions
Slash command working but still replying with "The application did not respond"
await interaction.reply
63 replies
DIAdiscord.js - Imagine an app
Created by v.dll on 1/30/2024 in #djs-questions
Slash command working but still replying with "The application did not respond"
you want the app to send embed messages?
63 replies