Merubokkusu / Discord-S.C.U.M

A Discord API Wrapper for Userbots/Selfbots written in Python.
MIT License
586 stars 171 forks source link

createDM spamming #351

Open ign07a opened 2 years ago

ign07a commented 2 years ago

@bot.gateway.command def opendm(resp): for id in [ID, ID]: dm = bot.createDM([id]).json()["id"] bot.sendMessage(dm, "message") asyncio.sleep(5)

bot.gateway.run()

== it sends the message perfectly fine, the "message" is what i want to send, works fine, the "ID, ID" sends to both IDs perfectly fine, but it spams them if i let the code keep running, idk why and idk how to fix it, i tried adding break at the end, still doesnt work

vivinano commented 2 years ago

possibly an event getting triggered without you knowing