shop.py 文件源码

python
阅读 33 收藏 0 点赞 0 评论 0

项目:Jumper-Cogs 作者: Redjumpman 项目源码 文件源码
def _gift_shop(self, ctx, user: discord.Member, quantity: int, *, itemname):
        """Send a number of items from your inventory to another user"""
        if quantity < 1:
            return await self.bot.say("Quantity must be higher than 0.")

        author = ctx.message.author
        itemname = itemname.title()
        settings = self.check_server_settings(author.server)
        self.user_check(settings, author)
        self.user_check(settings, user)
        if author == user:
            await self.bot.say("This is awkward. You can't do this action with yourself.")
        else:
            await self.user_gifting(settings, user, author, itemname, quantity)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号