Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- client.on("messageReactionAdd", async (reaction, user, member, message) =>{
- if (reaction.message.partial) await reaction.message.fetch();
- if (reaction.partial) await reaction.fetch();
- if (user.bot) return;
- if (!reaction.message.guild) return;
- if (reaction.message.channel.id === "735515835874934825"){
- if (reaction.emoji.id === '754759103913656395'){
- let guild = reaction.message.guild;
- reaction.message.guild.channels.create(`💻${user.tag}`, {
- type: 'text',
- permissionOverwrites: [
- {
- allow: 'VIEW_CHANNEL',
- id: user.id
- },
- {
- deny: 'VIEW_CHANNEL',
- id: guild.id
- },
- ]
- })
- };
- }
- client.channels.cache.get('754737452165496954').send({
- embed: {
- color: 3066993,
- title: `Création de ticket`,
- fields: [
- {
- name: "test",
- value: `${user.tag}`,
- },
- {
- name: "Crée à",
- value: new Date(),
- }
- ],
- footer: {
- text: '© Anaros all right reserved',
- icon_url: 'https://i.imgur.com/dpcP8rA.png',
- },
- }
- });
- })
Add Comment
Please, Sign In to add comment