@@ -2,33 +2,33 @@ 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 [ 'radar' , 'radarbots' , 'radarbotdirectory.xyz' , 'radarcord' , 'radarcord.net' ]
12
12
}
13
13
14
14
/** The logo URL. */
15
15
static get logoURL ( ) {
16
- return 'https://theoverlook.xyz/Images/RBD/botlistlogo .png'
16
+ return 'https://radarcord.net/static/logo .png'
17
17
}
18
18
19
19
/** Service's name. */
20
20
static get serviceName ( ) {
21
- return 'Radar Bot Directory '
21
+ return 'Radarcord '
22
22
}
23
23
24
24
/** The website URL. */
25
25
static get websiteURL ( ) {
26
- return 'https://radarbotdirectory.xyz '
26
+ return 'https://radarcord.net/ '
27
27
}
28
28
29
29
/** The base URL of the service's API. */
30
30
static get baseURL ( ) {
31
- return 'https://radarbotdirectory.xyz/ api'
31
+ return 'https://api.radarcord.net '
32
32
}
33
33
34
34
/**
@@ -38,7 +38,7 @@ export default class RadarBotDirectory extends Service {
38
38
static post ( options : ServicePostOptions ) {
39
39
const { token, clientID, serverCount, shard } = options
40
40
return super . _post ( {
41
- method : 'patch ' ,
41
+ method : 'post ' ,
42
42
url : `/bot/${ Util . resolveID ( clientID ) } /stats/` ,
43
43
headers : { Authorization : token } ,
44
44
data : shard
@@ -74,4 +74,12 @@ export default class RadarBotDirectory extends Service {
74
74
}
75
75
)
76
76
}
77
+
78
+ /**
79
+ * Gets the bot's reviews on this service.
80
+ * @param id The bot's ID
81
+ */
82
+ getBotReviews ( id : IDResolvable ) {
83
+ return this . _request ( { url : `/bot/${ Util . resolveID ( id ) } /reviews` } )
84
+ }
77
85
}
0 commit comments