types(core): use result types instead of direct types (#11140)

* types(core): use result types instead of direct types

fix: import pains

chore: apply suggestion from review

Co-authored-by: Almeida <github@almeidx.dev>

chore: fmt script

chore: requested change

* chore: rename script, fix build

* chore: types

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
Vlad Frangu
2025-10-24 18:36:54 +03:00
committed by GitHub
parent a990eefa31
commit 0c1ff5ea29
3 changed files with 35 additions and 6 deletions

View File

@@ -3,7 +3,6 @@
import { makeURLSearchParams, type RawFile, type RequestData, type REST } from '@discordjs/rest';
import {
Routes,
type APIThreadChannel,
type RESTDeleteAPIChannelResult,
type RESTGetAPIChannelInvitesResult,
type RESTGetAPIChannelMessageReactionUsersQuery,
@@ -566,7 +565,7 @@ export class ChannelsAPI {
body,
reason,
signal,
}) as Promise<APIThreadChannel>;
}) as Promise<RESTPostAPIChannelThreadsResult>;
}
/**