Python Forum
[Discord.py] Editing messages
Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Discord.py] Editing messages
#1
Hi, so i got this code, and i can't get it to modify the bot's own message, can anyone help me with this ?
I want it to, when somebody sends "_test" that it responds "testing" bot then modifies it to "tester".

@client.command(pass_context=True)
async def test(ctx):
	await client.say('testing')
	await client.edit_message('tester')
COol Dudes love programmING
Reply
#2
Does that not work?  What does your code actually do?
Reply
#3
Nevermind, i forgot to say that i don't need help anymore, i joined a python discord server and they told me how!
COol Dudes love programmING
Reply
#4
Ok, so what fixed it?  In case someone else stumbles upon this and wants to do the same thing :p
Reply
#5
Sorry for late reply, i've been coding all day, so the thing is that you had to make the
message a variable, if thats what its called?

So like msg = await client.send_message("bla")
then you can edit_message(msg,"test")
COol Dudes love programmING
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Creating Discord Bot: Unused import statement 'import discord EyeballCandy 0 3,555 Feb-02-2020, 10:53 PM
Last Post: EyeballCandy
  logging messages ahead of print messages vindo 6 3,204 Jun-18-2019, 02:45 PM
Last Post: vindo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020