mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +01:00
initial
This commit is contained in:
17
src/structures/DMChannel.js
Normal file
17
src/structures/DMChannel.js
Normal file
@@ -0,0 +1,17 @@
|
||||
'use strict';
|
||||
|
||||
const Channel = require('./Channel');
|
||||
const User = require('./User');
|
||||
|
||||
class DMChannel extends Channel{
|
||||
constructor(client, data) {
|
||||
super(client, data);
|
||||
}
|
||||
|
||||
setup(data) {
|
||||
this.recipient = this.client.store.add('users', new User(this.client, data.recipient));
|
||||
this.lastMessageID = data.last_message_id;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = DMChannel;
|
||||
Reference in New Issue
Block a user