1. 首页
  2. 数据库
  3. 其它
  4. slashcommands:Discord Slash Commands API的包装与discord.py一起使用 源码

slashcommands:Discord Slash Commands API的包装与discord.py一起使用 源码

上传者: 2021-04-18 13:52:43上传 ZIP文件 17.61KB 热度 24次
斜杠命令 这是与一起使用的的包装。 例子 import discord , slashcommands , asyncio client = discord . Client () print ( "Loading..." ) @ slashcommands . new ( "A simple test command to check if everything works." ) async def test ( interaction ): message = await interaction . respond ( f"This is a test, { interaction . user . username } !" ) await message . followup ( "Do you like my reply @everyone?" , mentions = d
下载地址
用户评论