Answers for "discord python wait for user input"

1

discord python wait for user input

await ctx.send(f'Role {role.mention} was set as default role. Do you want to apply this to all users in the server? [YES/NO]')
	def check(m):
    	return m.channel == ctx.channel
    msg = await bot.wait_for('message', check=check, timeout=500)
    checkcontinue = msg.content.lower()
    if checkcontinue == 'yes':
      await ctx.send(f'Assigning roles... This could take a little while!')
Posted by: Guest on July-13-2021

Python Answers by Framework

Browse Popular Code Answers by Language