@satorijs/protocol
Advanced tools
Comparing version 1.0.2 to 1.1.0
@@ -19,2 +19,3 @@ import Element from '@satorijs/element'; | ||
export interface Methods { | ||
createMessage(channelId: string, content: Element.Fragment, guildId?: string, options?: SendOptions): Promise<Message[]>; | ||
sendMessage(channelId: string, content: Element.Fragment, guildId?: string, options?: SendOptions): Promise<string[]>; | ||
@@ -96,2 +97,3 @@ sendPrivateMessage(userId: string, content: Element.Fragment, guildId?: string, options?: SendOptions): Promise<string[]>; | ||
name?: string; | ||
nick?: string; | ||
/** @deprecated */ | ||
@@ -98,0 +100,0 @@ userId?: string; |
@@ -46,3 +46,3 @@ "use strict"; | ||
"channel.mute": Method("muteChannel", ["channel_id", "guild_id", "enable"]), | ||
"message.create": Method("sendMessage", ["channel_id", "content"]), | ||
"message.create": Method("createMessage", ["channel_id", "content"]), | ||
"message.update": Method("editMessage", ["channel_id", "message_id", "content"]), | ||
@@ -49,0 +49,0 @@ "message.delete": Method("deleteMessage", ["channel_id", "message_id"]), |
{ | ||
"name": "@satorijs/protocol", | ||
"description": "Protocol types for Satori protocol", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"main": "lib/index.js", | ||
@@ -38,4 +38,4 @@ "types": "lib/index.d.ts", | ||
"@satorijs/element": "^2.5.1", | ||
"cosmokit": "^1.4.5" | ||
"cosmokit": "^1.5.1" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
48544
469
Updatedcosmokit@^1.5.1