also it needs yet another partial also .name is the actual emoji not the name
This commit is contained in:
5
index.js
5
index.js
@@ -13,7 +13,8 @@ const client = new Client({
|
|||||||
partials: [
|
partials: [
|
||||||
Partials.Channel,
|
Partials.Channel,
|
||||||
Partials.Message,
|
Partials.Message,
|
||||||
Partials.Reaction
|
Partials.Reaction,
|
||||||
|
Partials.User
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
client.once(Events.ClientReady, readyClient => {
|
client.once(Events.ClientReady, readyClient => {
|
||||||
@@ -42,7 +43,7 @@ client.on(Events.MessageCreate, message => {
|
|||||||
|
|
||||||
// funny auto mpreg react
|
// funny auto mpreg react
|
||||||
client.on(Events.MessageReactionAdd, (reaction, user) => {
|
client.on(Events.MessageReactionAdd, (reaction, user) => {
|
||||||
if (reaction.emoji.name === 'pregnant_man' && !user.bot) {
|
if (reaction.emoji.name === '🫃' && !user.bot) {
|
||||||
reaction.message.react('🫃')
|
reaction.message.react('🫃')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user