diff --git a/package.json b/package.json index 53a16e7..576ed9e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "revolt-api", - "version": "0.5.3-alpha.2", + "version": "0.5.3-alpha.8", "description": "Revolt API typings", "main": "dist/index.js", "type": "module", diff --git a/src/routes/channels.ts b/src/routes/channels.ts index 0690166..5cbcb5f 100644 --- a/src/routes/channels.ts +++ b/src/routes/channels.ts @@ -168,7 +168,7 @@ resource('/channels/:channel/messages', { { ...channelParams, ...await body("Message to be sent.", schema` - import type { Id, Nonce, AutumnId } from './_common'; + import type { Id, AutumnId } from './_common'; interface ${'SendMessage'} { /** @@ -178,8 +178,6 @@ resource('/channels/:channel/messages', { */ content: string; - nonce: Nonce; - /** * Attachments to include in message. */ @@ -412,7 +410,7 @@ resource('/channels/create', { "Create a new group with friends.", { ...await body("Group Data", schema` - import { Id, Nonce } from './_common'; + import { Id } from './_common'; interface ${'GroupData'} { /** @@ -429,8 +427,6 @@ resource('/channels/create', { */ description?: string; - nonce: Nonce; - /** * Array of user IDs to add to the group. * diff --git a/src/routes/servers.ts b/src/routes/servers.ts index 1d74f7e..90f1d38 100644 --- a/src/routes/servers.ts +++ b/src/routes/servers.ts @@ -93,7 +93,7 @@ resource('/servers/create', { "Create a new server.", { ...await body("Server Data", schema` - import { Id, Nonce } from './_common'; + import { Id } from './_common'; interface ${'ServerData'} { /** @@ -114,8 +114,6 @@ resource('/servers/create', { * Whether this server is not safe for work */ nsfw?: boolean; - - nonce: Nonce; } `), ...await success('Server', ref("Server")) @@ -131,7 +129,7 @@ resource('/servers/:server/channels', { { ...serverParams, ...await body("Channel Data", schema` - import { Id, Nonce } from './_common'; + import { Id } from './_common'; interface ${'ChannelData'} { /** @@ -157,8 +155,6 @@ resource('/servers/:server/channels', { * Whether this channel is not safe for work */ nsfw?: boolean; - - nonce: Nonce; } `), ...success("Channel", ref("Channel")) diff --git a/types/Channels.ts b/types/Channels.ts index 3b02302..345c872 100644 --- a/types/Channels.ts +++ b/types/Channels.ts @@ -146,7 +146,7 @@ export type VoiceChannel = ServerChannel & { channel_type: 'VoiceChannel' } -export type Channel = (SavedMessagesChannel | DirectMessageChannel | GroupChannel | TextChannel | VoiceChannel) & { nonce?: string } +export type Channel = (SavedMessagesChannel | DirectMessageChannel | GroupChannel | TextChannel | VoiceChannel) export type Message = { /** diff --git a/types/Servers.ts b/types/Servers.ts index b85a064..502bfcd 100644 --- a/types/Servers.ts +++ b/types/Servers.ts @@ -1,5 +1,5 @@ import type { Attachment } from './Autumn'; -import type { Id, Nonce } from './_common'; +import type { Id } from './_common'; export type MemberCompositeKey = { server: Id @@ -97,8 +97,6 @@ export type Server = { */ _id: Id - nonce?: Nonce - /** * User ID of server owner */