HarmonyOS 2Visual Studio Code Snippets for Harmony

Harmony的Visual Studio Code片段介绍。这是一组针对Harmony的片段!Harmony是一个易于使用的用于Deno的Discord API库,轻巧且易于使用。完整的面向对象方法,支持斜线命令,内置命令框架,并可定制缓存,支持Redis。使用@decorators轻松制作功能!使用:red_heart:的打字稿。提示:我们建议使用Tab Completion来快速完成工作。在您的Visual Studio Code设置中启用它,或者通过将此代码段"editor.tabCompletion": "on"添加到您的编辑器的settings.json文件中。片段示例:

client import { Client , Message , Intents } from "https://deno.land/x/harmony/mod.ts" ;
const client = new Client ( ) ;
client . on ( "ready" , ( ) => { console . log ( `Ready! User: ${ client . user ?. tag }` ) ;
zip 文件大小:9.62KB