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
2026-07-15 16:02:02 +01:00
committed by Jiralite
co-authored by Almeida kodiakhq[bot]
parent a6433057fd
commit a51c2248da
+1 -2
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,
@@ -490,7 +489,7 @@ export class ChannelsAPI {
body,
reason,
signal,
}) as Promise<APIThreadChannel>;
}) as Promise<RESTPostAPIChannelThreadsResult>;
}
/**