slashcommands:Discord Slash Commands API的包装与discord.py一起使用 源码
斜杠命令 这是与一起使用的的包装。 例子 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
用户评论