Skip to content

Commit 6d98225

Browse files
authored
Update DList.ts (#737)
According to the documentation it is a put request not a post request to update server count and it was not pushing server counts with the post requests. https://api.discordlist.gg/developers#/paths/~1bots~1%7Bid%7D~1guilds/put
1 parent 8105d2b commit 6d98225

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Interface/Lists/DList.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default class DList extends Service {
3939
static post(options: ServicePostOptions) {
4040
const { token, clientID, serverCount } = options
4141
return super._post({
42-
method: 'post',
42+
method: 'put',
4343
url: `/bots/${Util.resolveID(clientID)}/guilds`,
4444
headers: { Authorization: `Bearer ${token}` },
4545
params: {

0 commit comments

Comments
 (0)