-
Notifications
You must be signed in to change notification settings - Fork 19
/
Resolver.js
75 lines (68 loc) · 2.19 KB
/
Resolver.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/* eslint-disable no-unused-vars */
import NotImplementedException from '../../Errors/NotImplementedException';
/**
* Static Resolver class for AxonCore
*
* @author KhaaZ
*
* @static
* @class Resolver
*/
class Resolver {
/**
* Resolve a user within all the users the bot has.
*
* @param {BotClient} client - The bot client
* @param {Array<String>|String} args - Array of arguments resolved by the command.
* @returns {User|null} The user object / Null if not found / Error
* @memberof Resolver
*/
static user(client, args) {
throw new NotImplementedException();
}
/**
* Resolve a member within a guild.
*
* @param {Guild} guild - Object Guild resolved by the command.
* @param {Array<String>|String} args - Array of arguments resolved by the command.
* @returns {Member|null} The member object / Null if not found / Error
* @memberof Resolver
*/
static member(guild, args) {
throw new NotImplementedException();
}
/**
* Resolve a role within a guild.
*
* @param {Guild} guild - Object Guild resolved by the command.
* @param {Array<String>|String} args - Array of arguments resolved by the command.
* @returns {Role|null} The role object / Null if not found / Error
* @memberof Resolver
*/
static role(guild, args) {
throw new NotImplementedException();
}
/**
* Resolve a channel within a guild.
*
* @param {Guild} guild - Object Guild resolved by the command.
* @param {Array<String>|String} args - Array of arguments resolved by the command.
* @returns {Channel|null} The channel object / Null if not found / Error
* @memberof Resolver
*/
static channel(guild, args) {
throw new NotImplementedException();
}
/**
* Resolve a guild within all guilds the bot is in.
*
* @param {BotClient} client - The bot client
* @param {Array<String>} args - Array with guild name/ID
* @returns {Guild|null} The guild object / Null if not found / Error
* @memberof Resolver
*/
static guild(client, args) {
throw new NotImplementedException();
}
}
export default Resolver;