@satorijs/protocol
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
48105
467