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

上传:gate3152 浏览: 22 推荐: 0 文件:ZIP 大小:17.61KB 上传时间:2021-04-18 13:52:43 版权申诉
斜杠命令 这是与一起使用的的包装。 例子 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
上传资源
用户评论