Skip to content
This repository has been archived by the owner on Aug 24, 2021. It is now read-only.

Commit

Permalink
feat(ClientEvent): Remove maxUses from inviteCreate embed fields.
Browse files Browse the repository at this point in the history
  • Loading branch information
JKLorenzo committed Mar 21, 2021
1 parent 5435b2b commit 07f9c3b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -357,12 +357,6 @@ client.on('inviteCreate', (invite) => {
{ name: 'Channel:', value: invite.channel, inline: true },
{ name: 'Code:', value: invite.code, inline: true },
]);
if (invite.maxUses) {
embed.addField('Max Uses:', invite.maxUses, true);
}
else {
embed.addField('Max Uses:', 'Infinite', true);
}
if (invite.expiresTimestamp) {
embed.setTimestamp(invite.expiresTimestamp);
embed.setFooter('Expires ');
Expand Down

0 comments on commit 07f9c3b

Please sign in to comment.