#message.authorId is never defined
1 messages · Page 1 of 1 (latest)
events.messageCreate = (bot: Bot, DDeno.Message) => console.log(m.authorId);
Do your events this way for better type safety
events.messageCreate: EventHandlers['messageCreate'] = (m: DDeno.Message) => {
@pearl condor
It should error there ^
- you wouldn't need to set the type
This'll work
events.messageCreate: EventHandlers['messageCreate'] = (bot, m) => {
and they'll have the types
By "it", you mean the types here?
ye
hm actually you wouldn't need that 
it should work by itself already and should error without EventHandlers['messageCreate'] type since it already have that type
I use that in my functions cuz mine is a run function that doesn't have the types but in this case it should already have the types and should error theoretically