@@ -2,33 +2,39 @@ import { Service, ServicePostOptions } from '../Service'
2
2
import { Util , IDResolvable } from '../../Utils/Util'
3
3
4
4
/**
5
- * Represents the Radar Bot Directory service .
6
- * @see https://docs.radarbotdirectory.xyz /
5
+ * Represents the Radarcord service (formerly Radar Bot Directory) .
6
+ * @see https://docs.radarcord.net /
7
7
*/
8
- export default class RadarBotDirectory extends Service {
8
+ export default class Radarcord extends Service {
9
9
/** The values that can be used to select the service. */
10
10
static get aliases ( ) {
11
- return [ 'radar' , 'radarbots' , 'radarbotdirectory.xyz' ]
11
+ return [
12
+ 'radar' ,
13
+ 'radarbots' ,
14
+ 'radarbotdirectory.xyz' ,
15
+ 'radarcord' ,
16
+ 'radarcord.net'
17
+ ]
12
18
}
13
19
14
20
/** The logo URL. */
15
21
static get logoURL ( ) {
16
- return 'https://theoverlook.xyz/Images/RBD/botlistlogo .png'
22
+ return 'https://radarcord.net/static/logo .png'
17
23
}
18
24
19
25
/** Service's name. */
20
26
static get serviceName ( ) {
21
- return 'Radar Bot Directory '
27
+ return 'Radarcord '
22
28
}
23
29
24
30
/** The website URL. */
25
31
static get websiteURL ( ) {
26
- return 'https://radarbotdirectory.xyz '
32
+ return 'https://radarcord.net/ '
27
33
}
28
34
29
35
/** The base URL of the service's API. */
30
36
static get baseURL ( ) {
31
- return 'https://radarbotdirectory.xyz/ api'
37
+ return 'https://api.radarcord.net '
32
38
}
33
39
34
40
/**
@@ -38,7 +44,7 @@ export default class RadarBotDirectory extends Service {
38
44
static post ( options : ServicePostOptions ) {
39
45
const { token, clientID, serverCount, shard } = options
40
46
return super . _post ( {
41
- method : 'patch ' ,
47
+ method : 'post ' ,
42
48
url : `/bot/${ Util . resolveID ( clientID ) } /stats/` ,
43
49
headers : { Authorization : token } ,
44
50
data : shard
@@ -74,4 +80,12 @@ export default class RadarBotDirectory extends Service {
74
80
}
75
81
)
76
82
}
83
+
84
+ /**
85
+ * Gets the bot's reviews on this service.
86
+ * @param id The bot's ID
87
+ */
88
+ getBotReviews ( id : IDResolvable ) {
89
+ return this . _request ( { url : `/bot/${ Util . resolveID ( id ) } /reviews` } )
90
+ }
77
91
}
0 commit comments