wrapper stuff
This commit is contained in:
parent
4440aff26c
commit
0a353a4809
@ -19,6 +19,10 @@ class InvokerWrapper {
|
||||
|
||||
}
|
||||
|
||||
get id() {
|
||||
return this.target.id;
|
||||
}
|
||||
|
||||
get user() {
|
||||
return this.target.author;
|
||||
}
|
||||
@ -68,6 +72,10 @@ class InvokerWrapper {
|
||||
return this.client.getUserWrapper(this.user.id);
|
||||
}
|
||||
|
||||
deferReply(options) {
|
||||
return this.target.deferReply(options);
|
||||
}
|
||||
|
||||
async reply(options = {}) {
|
||||
|
||||
if (typeof options === 'string') options = { content: options };
|
||||
|
@ -40,6 +40,10 @@ class MessageWrapper {
|
||||
return Boolean(this._reply);
|
||||
}
|
||||
|
||||
deferReply() {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
async reply(options) {
|
||||
if (this._reply) throw new Error('Message has already been replied to!');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user