Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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!')
 
PREVIOUS NEXT
Tagged: #discord #python #wait #user #input
ADD COMMENT
Topic
Name
4+5 =