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

@satorijs/protocol

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@satorijs/protocol - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

19

lib/index.d.ts

@@ -20,3 +20,3 @@ import Element from '@satorijs/element';

sendMessage(channelId: string, content: Element.Fragment, guildId?: string, options?: SendOptions): Promise<string[]>;
sendPrivateMessage(userId: string, content: Element.Fragment, options?: SendOptions): Promise<string[]>;
sendPrivateMessage(userId: string, content: Element.Fragment, guildId?: string, options?: SendOptions): Promise<string[]>;
getMessage(channelId: string, messageId: string): Promise<Message>;

@@ -142,12 +142,14 @@ getMessageList(channelId: string, next?: string): Promise<List<Message>>;

}
export interface Button {
id: string;
}
export interface Command {
name: string;
aliases: string[];
description: Dict<string>;
arguments: Command.Argument[];
options: Command.Option[];
arguments: Command.Declaration[];
options: Command.Declaration[];
children: Command[];
}
export declare namespace Command {
interface Argument {
interface Declaration {
name: string;

@@ -158,8 +160,2 @@ description: Dict<string>;

}
interface Option {
name: string;
description: Dict<string>;
type: string;
required: boolean;
}
}

@@ -189,2 +185,3 @@ export interface Argv {

user?: User;
button?: Button;
_type?: string;

@@ -191,0 +188,0 @@ _data?: any;

{
"name": "@satorijs/protocol",
"description": "Protocol types for Satori protocol",
"version": "1.0.1",
"version": "1.0.2",
"main": "lib/index.js",

@@ -6,0 +6,0 @@ "types": "lib/index.d.ts",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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