Untitled
unknown
javascript
3 years ago
790 B
9
Indexable
const Discord = require('discord.js');
const isgd = require('isgd');
module.exports = async (client, interaction, args) => {
const url = interaction.options.getString('site');
const code = interaction.options.getString('code');
isgd.custom(url, code, function(res) {
if (res.startsWith("Error")) return client.errNormal({
error: `${res.replace("Error: ", "")}`,
type: 'editreply'
}, interaction)
client.succNormal({
text: `Deine geschrumpfte url wurde erstellt!`,
fields: [
{
name: `🔗┇Link`,
value: `${res}`,
inline: true,
}
],
type: 'editreply'
}, interaction);
});
}Editor is loading...