stuyy / Katana

Deno Discord API primarily based on Discord.JS ▬▬ι═══════ﺤ

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DM message errer

dongsu8142 opened this issue · comments

error: Uncaught TypeError: Cannot read property 'get' of undefined
const member = guild.members.get(author.id);
^
at buildMessage (https://deno.land/x/katana/src/utils/resolvers.ts:259:32)
at async default (https://deno.land/x/katana/src/handlers/MESSAGE_CREATE.ts:8:19)

commented

DM Channels are not yet supported, only Text & Guild channels ATM, will need to work on DM channels later.

Thank you.

commented

I had just added support for DMs. It's a bit buggy (if the bot sends a number of messages it'll throw an error where the author is undefined.