mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 02:23:31 +01:00
fix(core): fix inconsistencies on core (#9680)
* fix(core): fix inconsistencies on `core` * fix: add `createForumPost` back * fix: create -> createWebhook
This commit is contained in:
@@ -11,8 +11,8 @@ export class InvitesAPI {
|
||||
*
|
||||
* @see {@link https://discord.com/developers/docs/resources/invite#get-invite}
|
||||
* @param code - The invite code
|
||||
* @param query - The options to use when fetching the invite
|
||||
* @param options - The options to use when fetching the invite
|
||||
* @param query - The options for fetching the invite
|
||||
* @param options - The options for fetching the invite
|
||||
*/
|
||||
public async get(code: string, query: RESTGetAPIInviteQuery = {}, { signal }: Pick<RequestData, 'signal'> = {}) {
|
||||
return this.rest.get(Routes.invite(code), {
|
||||
@@ -26,7 +26,7 @@ export class InvitesAPI {
|
||||
*
|
||||
* @see {@link https://discord.com/developers/docs/resources/invite#delete-invite}
|
||||
* @param code - The invite code
|
||||
* @param options - The options to use when deleting the invite
|
||||
* @param options - The options for deleting the invite
|
||||
*/
|
||||
public async delete(code: string, { reason, signal }: Pick<RequestData, 'reason' | 'signal'> = {}) {
|
||||
await this.rest.delete(Routes.invite(code), { reason, signal });
|
||||
|
||||
Reference in New Issue
Block a user