types: use Snowflake instead of string for snowflakes (#9583)

fix: use `Snowflake` not `string`

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
Jiralite
2023-05-19 18:33:43 +01:00
committed by GitHub
parent 8107c5c0e7
commit 1c4a12c7d6
2 changed files with 2 additions and 2 deletions

View File

@@ -102,7 +102,7 @@ export class GuildsAPI {
* @param guildId - The id of the guild
* @param options - The options for fetching the guild
*/
public async get(guildId: string, { signal }: Pick<RequestData, 'signal'> = {}) {
public async get(guildId: Snowflake, { signal }: Pick<RequestData, 'signal'> = {}) {
return this.rest.get(Routes.guild(guildId), { signal }) as Promise<RESTGetAPIGuildResult>;
}

View File

@@ -272,7 +272,7 @@ export class WebhooksAPI {
id: Snowflake,
token: string,
messageId: Snowflake,
query: { thread_id?: string } = {},
query: { thread_id?: Snowflake } = {},
{ signal }: Pick<RequestData, 'signal'> = {},
) {
await this.rest.delete(Routes.webhookMessage(id, token, messageId), {