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)
评论列表
文章目录