简体   繁体   English

Discord.py(PyCord) 高级命令

[英]Discord.py(PyCord) premium commands

I'm trying to make premium commands in Pycord(discord.py fork).我正在尝试在 Pycord(discord.py fork)中制作高级命令。 I choosed patreon.我选择了patreon。 So now I don't know how can user who is trying to bought premium add his user ID in patreon checkout.所以现在我不知道试图购买高级版的用户如何在 patreon 结账时添加他的用户 ID。

Two things here..这里有两件事..

Pycord is only a fork, it doesn't have much of its own features/classes added on yet . Pycord 只是一个分支,它还没有添加很多自己的特性/类。 Here is its docs link and Here is its Discord server, and I suggest you do some research on how to handle Patreon rewards.是它的文档链接,是它的 Discord 服务器,我建议您研究一下如何处理 Patreon 奖励。

For example : Patreon have a bot that can grant role rewards to users if they pledge to a certain plan, so if I was you I'd consider allowing the Patreon bot do all the work by granting users a special role for Premium Subscribers.例如:Patreon 有一个机器人,如果用户承诺执行某个计划,它可以向用户授予角色奖励,所以如果我是你,我会考虑通过向用户授予高级订阅者的特殊角色来允许 Patreon 机器人完成所有工作。 After that I would check if a user has said role, if they do you can grant them special access to (in your case) premium commands!之后,我会检查用户是否具有上述角色,如果他们这样做,您可以授予他们对(在您的情况下)高级命令的特殊访问权限!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM