diff --git a/index.js b/index.js index cfcd126..773d2bc 100644 --- a/index.js +++ b/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})` + value: `${invite.inviter} (${invite.inviter.username || "Unknown"})` } ] }]