discord.py-rewrite

Discord.py-rewrite wait_for() how do i use?

青春壹個敷衍的年華 提交于 2020-08-19 12:59:52
问题 I can not really use wait_if () the way I want it, can anyone explain how to use wait_for ('message') and wait_for ('reaction') , only by the user of the command? (message translated by Google Translate, forgive me for any error...) 回答1: wait_for takes a check argument that is a function that takes the arguments of the event you're waiting for and determines whether or not that is the event you're waiting for. For example, the on_message event takes a message argument, so if we wanted to

How to store server and user ids in json file with discord.py

十年热恋 提交于 2020-08-10 20:31:02
问题 Yo, so I'm trying to give the bot I'm building more useful configuration per server. But I use channel name right now because I don't know how to automatically get all server and channel ids and store them in a json. My question is, how would i use json to implement a guild config and make the bot automatically fill out the ids of each guild and channel it is in so as to code my bot to use that to set up the channels the bot uses? My bot is built using discord.py rewrite if it helps. --EDIT--

How to store server and user ids in json file with discord.py

主宰稳场 提交于 2020-08-10 20:28:16
问题 Yo, so I'm trying to give the bot I'm building more useful configuration per server. But I use channel name right now because I don't know how to automatically get all server and channel ids and store them in a json. My question is, how would i use json to implement a guild config and make the bot automatically fill out the ids of each guild and channel it is in so as to code my bot to use that to set up the channels the bot uses? My bot is built using discord.py rewrite if it helps. --EDIT--

How to make the embed change when a user reacts on the message in discord.py rewrite?

£可爱£侵袭症+ 提交于 2020-08-10 20:23:26
问题 How do I make the embed description change when a user reacts with ▶ or ◀ ? This is the code I currently am using, - @client.command(aliases=['commands', 'info', 'cmds']) async def help(ctx): embed1 = discord.Embed(title=f"Everyone/Fun Commands-",description=f"```!vx userinfo [Member]```\n" f"**- Shows the info of the user mentioned.**\n\n" f"```!vx ping```\n" f"**- Shows the ping of the bot.**\n\n" f"```!vx help```\n" f"**- Shows a list of all commands.**\n\n" f"```!vx avatar [Member]```\n"