OmegaDevStudio / Selfcord-Old

A discord selfbot API wrapper.
MIT License
38 stars 18 forks source link

Hello, how can I send a direct message to someone through a channel using selfcord.py? #73

Closed Nalphex closed 1 year ago

Nalphex commented 1 year ago

I've tried this, it didn't work

target_user = await bot.fetch_user(message.author.id)
if target_user:
  await target_user.send(f"How much are you selling {product} for?")

it didn't work image

HaveSechs commented 1 year ago

this may be because sometimes therees a captcha required to send dms

Nalphex commented 1 year ago

Hello! If I have a CAPTCHA-solving service, how can I integrate it into my script? Specifically, if I'm using the CapMonster service

Shell1010 commented 1 year ago

Use get_user instead, fetch_user gathers from cache and is sync, get_user is an Api request. Also you need to run create_dm beforehand also to create the channel