-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmessage.js
31 lines (30 loc) · 870 Bytes
/
message.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
module.exports = async (message) => {
if (
message.content.startsWith('.init') &&
message.member.hasPermission('ADMINISTRATOR')
) {
if (message.client.message)
return message.channel.send(
'I already sent a queue message- please delete the previous one before using this command again.'
);
message.delete();
const embed = await message.channel.send({
embed: {
title: 'Waiting Queue for Buffs',
fields: [
{
name: 'Active',
value: "The queue is empty. Now's your chance! :wind_blowing_face:",
},
],
footer: {
text: 'React with :inbox_tray: to join the queue!',
},
color: 3066993,
},
});
embed.pin();
message.client.message = embed;
await embed.react('📥');
}
};