Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

revolt-api

Package Overview
Dependencies
Maintainers
1
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

revolt-api - npm Package Compare versions

Comparing version 0.5.2-alpha.0 to 0.5.2-alpha.1

2

package.json
{
"name": "revolt-api",
"version": "0.5.2-alpha.0",
"version": "0.5.2-alpha.1",
"description": "Revolt API typings",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -16,9 +16,9 @@ import { body, parameter, ref, success } from "../openapi/generators.js";

...await body("Bot Details", schema`
import type { Username } from './Users';
interface ${'BotDetails'} {
/**
* Bot name
* @minLength 1
* @maxLength 32
* Bot username
**/
name: string;
name: Username;
}

@@ -41,3 +41,7 @@ `),

import type { Bot } from './Bots';
type ${'MyBots'} = Bot[];
import type { User } from './Users';
type ${'MyBots'} = {
bots: Bot[],
users: User[]
};
`)

@@ -60,3 +64,10 @@ }

...botParams,
...await success("Bot", ref("Bot"))
...await success("Bot", schema`
import type { Bot } from './Bots';
import type { User } from './Users';
type ${'MyBot'} = {
bot: Bot,
user: User
};
`)
}

@@ -69,9 +80,9 @@ ),

...await body("Requested changes to bot object.", schema`
import type { Username } from './Users';
interface ${'EditBot'} {
/**
* Channel name
* @minLength 1
* @maxLength 32
**/
name?: string;
* Bot username
*/
name?: Username;

@@ -88,3 +99,3 @@ /**

**/
interactionsURL?: string;
interactions_url?: string;

@@ -91,0 +102,0 @@ /**

@@ -33,3 +33,3 @@ import type { Attachment } from "./Autumn";

*/
interactionsURL: string
interactions_url?: string
}

@@ -36,0 +36,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc