Comments (4)
Change le fichier par ceci et ça sera reparti 😉
module.exports = (bot, member) => {
console.log(member.user.username + " join the server")
}
from bord-pi.
C'est bien cette err que j'avais la dernière fois en faisant la même chose.
(node:22211) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'username' of undefined
at module.exports ([...]/Bord-Pi/events/guildMemberAdd.js:2:29)
at emitOne (events.js:116:13)
from bord-pi.
Essaie de log member et regarde ce qu'il ce passe
from bord-pi.
Après avoir loggé, il ressort bien ce qu'il devrait ressortir.
Code Final :
module.exports = (bot, WebhookPrivate, WebhookPublic, member) => {
console.log(member.user.username)
}
from bord-pi.
Related Issues (13)
- Idée : Créer un thread hebdomadaire
- Change the licence inside your package.json HOT 2
- Revoir typo README.md
- Mettre en option les `WebhookPrivate`
- Revoir embed Logs events join/leave
- Ajout de la commande /ban
- Liaison Reddit à supprimer
- Système de rôles à revoir
- Intégrer les Slash Commands
- Message de boost
- Rôles : Possibilité de les avoir directement avec les boutons.
- member.avatarURL() is not a function (BPH)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bord-pi.