#little help with on_message_create()

1 messages · Page 1 of 1 (latest)

hexed delta
#

Heya. I have made a connection between guilded and discord so guilded receives and discord sends (currently). but I have a tiny problem.

I use a file that acts as the buffer. but I have the problem that guilded is faster than discord at processing, so discord sents it twice to guilded.
my Question. Is there a way to check if the message is already sent by the user. Or better question. I work with webhooks and guilded also takes the webhooks (from discord) as if the message is a new message from a other user.

Is there a way to check, if the message comes from a webhook (i mean in discord)
thanks in advance

paper beaconBOT
#

Hey! Once your issue is solved, press the button below to close this thread!

small coral
#

Why exactly is discord being slow the cause for the message sending twice? And if it is the culprit you can store the message objects in a list and check if they are already there.

#

on_message_create(ctx):
if ctx.message in messages:
pass

hexed delta
#

nah sorry, fogot to close. I messed something up, so it was actually like a löoop but not in a loop. problem on my end