Compare commits
No commits in common. "118954f7954a74f80bba5993d55fabf21833f753" and "458e913ad0031d1dd0d7e0f5f184739a6292fae5" have entirely different histories.
118954f795
...
458e913ad0
2 changed files with 1 additions and 27 deletions
|
@ -1,24 +0,0 @@
|
|||
import { SlashCommandBuilder } from 'discord.js';
|
||||
export default {
|
||||
data: new SlashCommandBuilder()
|
||||
.setName('invite')
|
||||
.setDescription('Generate invite link for the bot or another')
|
||||
.addMentionableOption(option =>
|
||||
option.setName('bot')
|
||||
.setDescription('The bot you want to make an invite link for.')
|
||||
.setRequired(false)),
|
||||
category: 'utility',
|
||||
async execute(interaction, args, client) {
|
||||
if (args.bot) {
|
||||
if (args.bot.user.bot) {
|
||||
return interaction.reply(`You can add the bot you mentioned with this link: https://discordapp.com/oauth2/authorize?client_id=${args.bot.id}&permissions=2684406848&scope=bot%20applications.commands\n\`Note: The invite will not work if the bot is not public\``);
|
||||
}
|
||||
else {
|
||||
return interaction.reply('I\'m sorry but the user you mentioned is not a bot!');
|
||||
}
|
||||
}
|
||||
else {
|
||||
return interaction.reply(`You can add me from here: https://discord.com/oauth2/authorize?client_id=${client.user.id}&permissions=2684406848&scope=bot%20applications.commands`);
|
||||
}
|
||||
},
|
||||
};
|
|
@ -1,8 +1,6 @@
|
|||
import fs from 'node:fs';
|
||||
export function rand(text, interaction) {
|
||||
if (interaction) {
|
||||
interaction.author = interaction.user;
|
||||
}
|
||||
interaction.author = interaction.user;
|
||||
// Find a value in an array of objects in Javascript - https://stackoverflow.com/a/12462387
|
||||
function search(nameKey, myArray) {
|
||||
for (let i = 0; i < myArray.length; i++) {
|
||||
|
|
Loading…
Reference in a new issue