Skip to content

Commit 04a2929

Browse files
authored
Update and rename RadarBotList.ts to Radarcord.ts
Updated in accordance with https://docs.radarcord.net/
1 parent 8aa979a commit 04a2929

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

src/Interface/Lists/RadarBotList.ts src/Interface/Lists/Radarcord.ts

+17-9
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,33 @@ import { Service, ServicePostOptions } from '../Service'
22
import { Util, IDResolvable } from '../../Utils/Util'
33

44
/**
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/
77
*/
8-
export default class RadarBotDirectory extends Service {
8+
export default class Radarcord extends Service {
99
/** The values that can be used to select the service. */
1010
static get aliases() {
11-
return ['radar', 'radarbots', 'radarbotdirectory.xyz']
11+
return ['radar', 'radarbots', 'radarbotdirectory.xyz', 'radarcord', 'radarcord.net']
1212
}
1313

1414
/** The logo URL. */
1515
static get logoURL() {
16-
return 'https://theoverlook.xyz/Images/RBD/botlistlogo.png'
16+
return 'https://radarcord.net/static/logo.png'
1717
}
1818

1919
/** Service's name. */
2020
static get serviceName() {
21-
return 'Radar Bot Directory'
21+
return 'Radarcord'
2222
}
2323

2424
/** The website URL. */
2525
static get websiteURL() {
26-
return 'https://radarbotdirectory.xyz'
26+
return 'https://radarcord.net/'
2727
}
2828

2929
/** The base URL of the service's API. */
3030
static get baseURL() {
31-
return 'https://radarbotdirectory.xyz/api'
31+
return 'https://api.radarcord.net'
3232
}
3333

3434
/**
@@ -38,7 +38,7 @@ export default class RadarBotDirectory extends Service {
3838
static post(options: ServicePostOptions) {
3939
const { token, clientID, serverCount, shard } = options
4040
return super._post({
41-
method: 'patch',
41+
method: 'post',
4242
url: `/bot/${Util.resolveID(clientID)}/stats/`,
4343
headers: { Authorization: token },
4444
data: shard
@@ -74,4 +74,12 @@ export default class RadarBotDirectory extends Service {
7474
}
7575
)
7676
}
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+
}
7785
}

0 commit comments

Comments
 (0)