Skip to content
sern

EventType

A bitfield that discriminates event modules

Example

1
export default eventModule({
2
//highlight-next-line
3
type : EventType.Discord,
4
name : 'guildMemberAdd'
5
execute(member : GuildMember) {
6
console.log(member)
7
}
8
})

Enumeration Members

Discord

Discord: 0

The EventType for handling discord events

Source

src/core/structures/enums.ts:51


External

External: 2

The EventType for handling external events. Could be for example, process events, database events

Source

src/core/structures/enums.ts:60


Sern

Sern: 1

The EventType for handling sern events

Source

src/core/structures/enums.ts:55