mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-03 05:26:07 +00:00
fix: support AttachmentBuilder when creating a sticker
This commit is contained in:
parent
00640bfda7
commit
482de42b28
@ -3,8 +3,8 @@ import type {
|
|||||||
RESTPatchAPIGuildStickerJSONBody,
|
RESTPatchAPIGuildStickerJSONBody,
|
||||||
RESTPostAPIGuildStickerFormDataBody,
|
RESTPostAPIGuildStickerFormDataBody,
|
||||||
} from 'discord-api-types/v10';
|
} from 'discord-api-types/v10';
|
||||||
import type { UsingClient } from '..';
|
import type { RawFile, UsingClient } from '..';
|
||||||
import type { Attachment } from '../builders';
|
import type { Attachment, AttachmentBuilder } from '../builders';
|
||||||
import type { MethodContext, ObjectToLower } from '../common';
|
import type { MethodContext, ObjectToLower } from '../common';
|
||||||
import { User } from './User';
|
import { User } from './User';
|
||||||
import { DiscordBase } from './extra/DiscordBase';
|
import { DiscordBase } from './extra/DiscordBase';
|
||||||
@ -54,5 +54,5 @@ export class Sticker extends DiscordBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface CreateStickerBodyRequest extends Omit<RESTPostAPIGuildStickerFormDataBody, 'file'> {
|
export interface CreateStickerBodyRequest extends Omit<RESTPostAPIGuildStickerFormDataBody, 'file'> {
|
||||||
file: Attachment;
|
file: Attachment | AttachmentBuilder | RawFile;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user