Compare commits

...

2 Commits

Author SHA1 Message Date
Vlad Frangu
52f8bc33c6 chore: release 0.3.0 (#10) 2020-09-14 21:45:21 +03:00
TTtie
fe1868b04f fix(APIMessage): Correct APIMessage#mentions type (#9)
BREAKING: APIMessage#mentions is an array of the users, not just the user by itself - this PR reflects such state.
2020-09-13 14:02:33 +02:00
3 changed files with 3 additions and 3 deletions

2
package-lock.json generated
View File

@@ -1,6 +1,6 @@
{
"name": "discord-api-types",
"version": "0.2.0",
"version": "0.3.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@@ -1,6 +1,6 @@
{
"name": "discord-api-types",
"version": "0.2.0",
"version": "0.3.0",
"description": "Discord API typings that are kept up to date for use in bot library creation.",
"main": "default/index.js",
"scripts": {

View File

@@ -64,7 +64,7 @@ export interface APIMessage {
edited_timestamp: string | null;
tts: boolean;
mention_everyone: boolean;
mentions: APIUser & { member?: Omit<APIGuildMember, 'user'> };
mentions: (APIUser & { member?: Omit<APIGuildMember, 'user'> })[];
mention_roles: string[];
mention_channels?: APIChannelMention[];
attachments: APIAttachment[];