Fix that silly error
This commit is contained in:
parent
cc6a64516b
commit
061919cac5
4
index.js
4
index.js
|
@ -122,7 +122,7 @@ client.on('inviteCreate', (invite) => { //if someone creates an invite while bot
|
|||
},
|
||||
{
|
||||
name: "Inviter",
|
||||
value: `${invite.inviter} (${invite.inviter.username || "Unknown"})`
|
||||
value: `${(invite.inviter.id == client.user.id) ? "Custom Invite URL (Through Bot/Embed)" : `${invite.inviter} (${invite.inviter.displayName})`}`
|
||||
}
|
||||
]
|
||||
}]
|
||||
|
@ -158,7 +158,7 @@ client.on('guildMemberAdd', async (member) => { // We're just gonna always send
|
|||
},
|
||||
{
|
||||
name: "Invite",
|
||||
value: `Inviter: ${(invite.inviter.id == client.user.id) ? "Custom Invite URL (Through Bot)" : `${invite.inviter} (${invite.inviter.displayName})`}\nCode: ${invite.code}\nUses: ${invite.uses}/${invite.maxUses ||"∞"}\nExpires: ${invite.expiresAt <= 0 ? "Never" : `<t:${Math.floor(new Date(invite.expiresAt) / 1000)}:R>`}\nCreated at: <t:${Math.floor(new Date(invite.createdAt) / 1000)}>`
|
||||
value: `Inviter: ${(invite.inviter.id == client.user.id) ? "Custom Invite URL (Through Bot/Embed)" : `${invite.inviter} (${invite.inviter.displayName})`}\nCode: ${invite.code}\nUses: ${invite.uses}/${invite.maxUses ||"∞"}\nExpires: ${invite.expiresAt <= 0 ? "Never" : `<t:${Math.floor(new Date(invite.expiresAt) / 1000)}:R>`}\nCreated at: <t:${Math.floor(new Date(invite.createdAt) / 1000)}>`
|
||||
},
|
||||
{
|
||||
name: "Guild",
|
||||
|
|
Loading…
Reference in a new issue