aboutsummaryrefslogtreecommitdiff
path: root/src/lib/extensions/BushMessage.ts
blob: 6293c55e4e44a7f9c2528fbbe5f4785c39cbca23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { DMChannel, Message, NewsChannel, Structures, TextChannel } from 'discord.js';
import { BushClient } from './BushClient';
import { BushCommandUtil } from './BushCommandUtil';
import { BushGuild } from './BushGuild';
import { BushGuildMember } from './BushGuildMember';
import { BushUser } from './BushUser';

export class BushMessage extends Message {
	public declare client: BushClient;
	public declare util: BushCommandUtil;
	public declare guild: BushGuild;
	public declare member: BushGuildMember;
	public declare author: BushUser;
	public constructor(client: BushClient, data: unknown, channel: TextChannel | DMChannel | NewsChannel) {
		super(client, data, channel);
		this.client = client;
		this.channel = channel;
	}
}

Structures.extend('Message', () => BushMessage);