diff --git a/package.json b/package.json index 2242f821..78c157cd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "revolt.js", - "version": "3.0.1-beta.11", + "version": "3.0.1-beta.13", "main": "dist/index.js", "repository": "https://gitlab.insrt.uk/revolt/revolt.js", "author": "Paul Makles ", diff --git a/src/Client.ts b/src/Client.ts index 3c35d898..362af8f4 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -93,11 +93,14 @@ export class Client extends EventEmitter { // Internal loopback. this.on('message', message => { let channel = message.channel; - if (channel instanceof DirectMessageChannel) { - if (!channel.active) { - channel.patch({ active: true }); + channel.patch({ + active: true, + last_message: { + _id: message.id, + author: message.author.id, + short: message.content.substr(24) } - } + }); }); }