discord-prevnames
Version:
Unofficial Discord module to track and retrieve users' previous usernames and display names by ID .
19 lines (16 loc) • 423 B
JavaScript
const EventEmitter = require('events');
class NameEvents extends EventEmitter {
constructor() {
super();
this.setMaxListeners(20);
}
emitNameAdded(data) {
this.emit('prevnamesadd', {
userId: data.userId,
type: data.type,
name: data.name,
changedAt: data.changedAt
});
}
}
module.exports = new NameEvents();