message

How to retrieve a specific message by ID (tried fetch_message(id))

痴心易碎 提交于 2020-08-20 11:32:10
问题 @client.command() async def edit(ctx, message_id, *, new_message) : channel, chan, guild = None, list_channels("saved_channels.csv"), ctx.guild.id message = await fetch_message(message_id) await message.edit(new_message) embed=discord.Embed(color=0x00ca1f) embed.add_field(name="Success :white_check_mark:", value=f"Le message a bien été édité dans {message.channel.mention}", inline=False) await ctx.send(embed = embed) I'm trying to edit a specific message my bot sent in another channel by

Check whether the entered value is actually a number. If not, you will see an error message under the division

天涯浪子 提交于 2020-08-11 18:47:24
问题 I want to create in jquery a web page with two text boxes, a button and a div with dummy text. After clicking the button, the height and width of the div is set with the values entered in text boxes. Make a submitted values a number using the parseInt function. Then check whether the entered value is actually a number. If not, you will see an error message under the division. My question is, how can i use function parseInt and also function isNaN in this case and get error message ? Thanks

Check whether the entered value is actually a number. If not, you will see an error message under the division

情到浓时终转凉″ 提交于 2020-08-11 18:46:49
问题 I want to create in jquery a web page with two text boxes, a button and a div with dummy text. After clicking the button, the height and width of the div is set with the values entered in text boxes. Make a submitted values a number using the parseInt function. Then check whether the entered value is actually a number. If not, you will see an error message under the division. My question is, how can i use function parseInt and also function isNaN in this case and get error message ? Thanks