archex.js
v2.6.0
Published
Webhook ile mesaj yazdırma!
Downloads
5
Maintainers
Readme
archex.js
Installation
npm install archex.js
Code
const { Webhook } = require('archex.js');
// v13 discord.js
client.on('messageCreate', async (m) => {
var webhook = new Webhook('id', 'token');
if (m.content == "!sendMessage") {
webhook.send({
content: 'Message',
username: 'Username',
avatarURL: 'Avatar URL',
embeds: embedArray
}); // send message
} else if (m.content == "!editMessage") {
webhook.edit('Message Id', {
content: 'Message',
username: 'Username',
avatarURL: 'Avatar URL',
embeds: embedArray
}); // edit message
} else if (m.content == "!deleteMessage") {
webhook.delete('Message Id'); // delete message
}
})