mirror of
https://github.com/System-End/Discord-Bot.git
synced 2026-04-19 16:28:26 +00:00
Merge pull request #27 from JordanC28/main
interaction.editreply is not a function and remplace "text:" with "error:"
This commit is contained in:
commit
b8172c3fe0
38 changed files with 38 additions and 38 deletions
|
|
@ -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] })
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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] })
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -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] })
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -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] })
|
||||
};
|
||||
|
|
@ -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] })
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -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] })
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -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] })
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -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] })
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -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] })
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -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] })
|
||||
};
|
||||
|
|
@ -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] })
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -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] })
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -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] })
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -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] })
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -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] })
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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] })
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -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] })
|
||||
};
|
||||
|
|
@ -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] })
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -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);
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue