Merge pull request #27 from JordanC28/main

interaction.editreply is not a function and remplace "text:" with "error:"
This commit is contained in:
CorwinDev 2022-10-10 20:56:55 +02:00 committed by GitHub
commit b8172c3fe0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
38 changed files with 38 additions and 38 deletions

View file

@ -10,7 +10,7 @@ module.exports = async (client, interaction, args) => {
const image = await pop.ad(userAvatar);
let attach = new Discord.MessageAttachment(image, "ad.png");
interaction.editreply({ files: [attach] })
interaction.editReply({ files: [attach] })
}

View file

@ -10,7 +10,7 @@ module.exports = async (client, interaction, args) => {
const img = await Canvas.bed(interaction.user.avatarURL({ size: 1024, format: 'png' }), userAvatar);
let attach = new Discord.MessageAttachment(img, "bed.png");;
interaction.editreply({ files: [attach] })
interaction.editReply({ files: [attach] })
}

View file

@ -12,7 +12,7 @@ module.exports = async (client, interaction, args) => {
const img = await Canvas.burn(userAvatar, lvl);
let attach = new Discord.MessageAttachment(img, "blurred.png");;
interaction.editreply({ files: [attach] })
interaction.editReply({ files: [attach] })
}

View file

@ -6,5 +6,5 @@ module.exports = async (client, interaction, args) => {
const image = await pop.car();
let attach = new Discord.MessageAttachment(image.image, "car.png");
interaction.editreply({ files: [attach] })
interaction.editReply({ files: [attach] })
};

View file

@ -10,7 +10,7 @@ module.exports = async (client, interaction, args) => {
const image = await pop.clown(userAvatar);
let attach = new Discord.MessageAttachment(image, "clown.png");
interaction.editreply({ files: [attach] })
interaction.editReply({ files: [attach] })
}

View file

@ -10,7 +10,7 @@ module.exports = async (client, interaction, args) => {
const image = await pop.colorify(userAvatar);
let attach = new Discord.MessageAttachment(image, "colorify.png");
interaction.editreply({ files: [attach] })
interaction.editReply({ files: [attach] })
}

View file

@ -12,7 +12,7 @@ module.exports = async (client, interaction, args) => {
const image = await Canvas.darkness(userAvatar, amount);
let attach = new Discord.MessageAttachment(image, "blurred.gif");
interaction.editreply({ files: [attach] })
interaction.editReply({ files: [attach] })
}

View file

@ -9,7 +9,7 @@ module.exports = async (client, interaction, args) => {
const image = await pop.drake(splitArgs1, splitArgs2);
let attach = new Discord.MessageAttachment(image, "drake.png");
interaction.editreply({ files: [attach] })
interaction.editReply({ files: [attach] })
}

View file

@ -10,7 +10,7 @@ module.exports = async (client, interaction, args) => {
const image = await Canvas.facepalm(userAvatar);
let attach = new Discord.MessageAttachment(image, "facepalm.png");
interaction.editreply({ files: [attach] })
interaction.editReply({ files: [attach] })
}

View file

@ -5,5 +5,5 @@ module.exports = async (client, interaction, args) => {
let link = `https://some-random-api.ml/canvas/glass/?avatar=${interaction.user.avatarURL({ size: 1024, format: 'png' })}`
const attachment = new Discord.MessageAttachment(link, 'glass.png');
interaction.editreply({ files: [attachment] })
interaction.editReply({ files: [attachment] })
};

View file

@ -10,7 +10,7 @@ module.exports = async (client, interaction, args) => {
const image = await pop.greyscale(userAvatar);
let attach = new Discord.MessageAttachment(image, "greyscale.png");
interaction.editreply({ files: [attach] })
interaction.editReply({ files: [attach] })
}

View file

@ -10,7 +10,7 @@ module.exports = async (client, interaction, args) => {
const image = await pop.invert(userAvatar);
let attach = new Discord.MessageAttachment(image, "invert.png");
interaction.editreply({ files: [attach] })
interaction.editReply({ files: [attach] })
}

View file

@ -10,7 +10,7 @@ module.exports = async (client, interaction, args) => {
const image = await new DIG.Kiss().getImage(avatar, userAvatar);
let attach = new Discord.MessageAttachment(image, "kiss.png");
interaction.editreply({ files: [attach] })
interaction.editReply({ files: [attach] })
}

View file

@ -13,7 +13,7 @@ module.exports = async (client, interaction, args) => {
var img = await new DIG.Podium().getImage(user1Avatar, user2Avatar, user3Avatar, user1.tag, user2.tag, user3.tag);
var attach = new Discord.MessageAttachment(img, "podium.png");
interaction.editreply({ files: [attach] })
interaction.editReply({ files: [attach] })
}

View file

@ -9,7 +9,7 @@ module.exports = async (client, interaction, args) => {
const image = await pop.pooh(splitArgs1, splitArgs2);
let attach = new Discord.MessageAttachment(image, "pooh.png");
interaction.editreply({ files: [attach] })
interaction.editReply({ files: [attach] })
}

View file

@ -9,7 +9,7 @@ module.exports = async (client, interaction, args) => {
const image = await new DIG.Spank().getImage(avatar, userAvatar);
let attach = new Discord.MessageAttachment(image, "spank.png");
interaction.editreply({ files: [attach] })
interaction.editReply({ files: [attach] })
}

View file

@ -5,5 +5,5 @@ module.exports = async (client, interaction, args) => {
let link = `https://some-random-api.ml/canvas/triggered/?avatar=${interaction.user.avatarURL({ size: 1024, format: 'png' })}`
const attachment = new Discord.MessageAttachment(link, 'triggered.gif');
interaction.editreply({ files: [attachment] })
interaction.editReply({ files: [attachment] })
};

View file

@ -8,7 +8,7 @@ module.exports = async (client, interaction, args) => {
let img = await new DIG.Wanted().getImage(userAvatar, ``);
let attach = new Discord.MessageAttachment(img, "wanted.png");;
interaction.editreply({ files: [attach] })
interaction.editReply({ files: [attach] })
}

View file

@ -22,7 +22,7 @@ module.exports = async (client, interaction, args) => {
}, interaction);
}
else {
return client.errNormal({ text: "No profile found! Open a profile with createprofile", type: 'editreply' }, interaction);
return client.errNormal({ error: "No profile found! Open a profile with createprofile", type:'editreply' }, interaction);
}
})
}

View file

@ -29,7 +29,7 @@ module.exports = async (client, interaction, args) => {
}, interaction);
}
else {
return client.errNormal({ text: "No profile found! Open a profile with createprofile", type: 'editreply' }, interaction);
return client.errNormal({ error: "No profile found! Open a profile with createprofile", type:'editreply' }, interaction);
}
})

View file

@ -29,7 +29,7 @@ module.exports = async (client, interaction, args) => {
}, interaction);
}
else {
return client.errNormal({ text: "No profile found! Open a profile with createprofile", type: 'editreply' }, interaction);
return client.errNormal({ error: "No profile found! Open a profile with createprofile", type:'editreply' }, interaction);
}
})

View file

@ -29,7 +29,7 @@ module.exports = async (client, interaction, args) => {
}, interaction);
}
else {
return client.errNormal({ text: "No profile found! Open a profile with createprofile", type: 'editreply' }, interaction);
return client.errNormal({ error: "No profile found! Open a profile with createprofile", type:'editreply' }, interaction);
}
})

View file

@ -29,7 +29,7 @@ module.exports = async (client, interaction, args) => {
}, interaction);
}
else {
return client.errNormal({ text: "No profile found! Open a profile with createprofile", type: 'editreply' }, interaction);
return client.errNormal({ error: "No profile found! Open a profile with createprofile", type:'editreply' }, interaction);
}
})

View file

@ -29,7 +29,7 @@ module.exports = async (client, interaction, args) => {
}, interaction);
}
else {
return client.errNormal({ text: "No profile found! Open a profile with createprofile", type: 'editreply' }, interaction);
return client.errNormal({ error: "No profile found! Open a profile with createprofile", type:'editreply' }, interaction);
}
})

View file

@ -29,7 +29,7 @@ module.exports = async (client, interaction, args) => {
}, interaction);
}
else {
return client.errNormal({ text: "No profile found! Open a profile with createprofile", type: 'editreply' }, interaction);
return client.errNormal({ error: "No profile found! Open a profile with createprofile", type:'editreply' }, interaction);
}
})

View file

@ -29,7 +29,7 @@ module.exports = async (client, interaction, args) => {
}, interaction);
}
else {
return client.errNormal({ text: "No profile found! Open a profile with createprofile", type: 'editreply' }, interaction);
return client.errNormal({ error: "No profile found! Open a profile with createprofile", type:'editreply' }, interaction);
}
})

View file

@ -22,7 +22,7 @@ module.exports = async (client, interaction, args) => {
}, interaction);
}
else {
return client.errNormal({ text: "No profile found! Open a profile with createprofile", type: 'editreply' }, interaction);
return client.errNormal({ error: "No profile found! Open a profile with createprofile", type:'editreply' }, interaction);
}
})
}

View file

@ -37,7 +37,7 @@ module.exports = async (client, interaction, args) => {
}, interaction);
}
else {
return client.errNormal({ text: "No profile found! Open a profile with createprofile", type: 'editreply' }, interaction);
return client.errNormal({ error: "No profile found! Open a profile with createprofile", type:'editreply' }, interaction);
}
})
}

View file

@ -23,7 +23,7 @@ module.exports = async (client, interaction, args) => {
}, interaction);
}
else {
return client.errNormal({ text: "No profile found! Open a profile with createprofile", type: 'editreply' }, interaction);
return client.errNormal({ error: "No profile found! Open a profile with createprofile", type:'editreply' }, interaction);
}
})
}

View file

@ -30,7 +30,7 @@ module.exports = async (client, interaction, args) => {
}, interaction);
}
else {
return client.errNormal({ text: "No profile found! Open a profile with createprofile", type: 'editreply' }, interaction);
return client.errNormal({ error: "No profile found! Open a profile with createprofile", type:'editreply' }, interaction);
}
})

View file

@ -30,7 +30,7 @@ module.exports = async (client, interaction, args) => {
}, interaction);
}
else {
return client.errNormal({ text: "No profile found! Open a profile with createprofile", type: 'editreply' }, interaction);
return client.errNormal({ error: "No profile found! Open a profile with createprofile", type:'editreply' }, interaction);
}
})

View file

@ -30,7 +30,7 @@ module.exports = async (client, interaction, args) => {
}, interaction);
}
else {
return client.errNormal({ text: "No profile found! Open a profile with createprofile", type: 'editreply' }, interaction);
return client.errNormal({ error: "No profile found! Open a profile with createprofile", type:'editreply' }, interaction);
}
})

View file

@ -30,7 +30,7 @@ module.exports = async (client, interaction, args) => {
}, interaction);
}
else {
return client.errNormal({ text: "No profile found! Open a profile with createprofile", type: 'editreply' }, interaction);
return client.errNormal({ error: "No profile found! Open a profile with createprofile", type:'editreply' }, interaction);
}
})

View file

@ -30,7 +30,7 @@ module.exports = async (client, interaction, args) => {
}, interaction);
}
else {
return client.errNormal({ text: "No profile found! Open a profile with createprofile", type: 'editreply' }, interaction);
return client.errNormal({ error: "No profile found! Open a profile with createprofile", type:'editreply' }, interaction);
}
})

View file

@ -30,7 +30,7 @@ module.exports = async (client, interaction, args) => {
}, interaction);
}
else {
return client.errNormal({ text: "No profile found! Open a profile with createprofile", type: 'editreply' }, interaction);
return client.errNormal({ error: "No profile found! Open a profile with createprofile", type:'editreply' }, interaction);
}
})

View file

@ -30,7 +30,7 @@ module.exports = async (client, interaction, args) => {
}, interaction);
}
else {
return client.errNormal({ text: "No profile found! Open a profile with createprofile", type: 'editreply' }, interaction);
return client.errNormal({ error: "No profile found! Open a profile with createprofile", type:'editreply' }, interaction);
}
})

View file

@ -22,7 +22,7 @@ module.exports = async (client, interaction, args) => {
}, interaction);
}
else {
return client.errNormal({ text: "No profile found! Open a profile with createprofile", type: 'editreply' }, interaction);
return client.errNormal({ error: "No profile found! Open a profile with createprofile", type:'editreply' }, interaction);
}
})
}

View file

@ -22,7 +22,7 @@ module.exports = async (client, interaction, args) => {
}, interaction);
}
else {
return client.errNormal({ text: "No profile found! Open a profile with createprofile", type: 'editreply' }, interaction);
return client.errNormal({ error: "No profile found! Open a profile with createprofile", type:'editreply' }, interaction);
}
})
}