aiko-chan-ai / discord.js-selfbot-v13

An unofficial discord.js fork for creating selfbots
https://discordjs-self-v13.netlify.app
GNU General Public License v3.0
751 stars 160 forks source link

How do you capture the response of "sendSlash"? #206

Closed archubbuck closed 2 years ago

archubbuck commented 2 years ago

Which package is the feature request for?

The documentation

Feature

Capture the response of sendSlash?

Ideal solution or implementation

Unsure

Alternative solutions or implementations

No response

Other context

No response

archubbuck commented 2 years ago

@aiko-chan-ai , I tried adding you on Discord to ask directly, but you haven't accepted my request. Thanks!

aiko-chan-ai commented 2 years ago

@archubbuck seems to be missing from the documentation, I'll add it. It will return a Promise, resolve if the slash is successfully sent and reject if it fails The returned data is https://discordjs-self-v13.netlify.app/#/docs/docs/main/typedef/InteractionResponseBody

aiko-chan-ai commented 2 years ago

https://discordjs-self-v13.netlify.app/#/docs/docs/main/class/TextChannel?scrollTo=sendSlash

archubbuck commented 2 years ago

Hi @aiko-chan-ai. Thank you for the clarification. Just to confirm, are you expecting the response from the below to be https://discordjs-self-v13.netlify.app/#/docs/docs/main/typedef/InteractionResponseBody? It looks like it may be set to return a string, but I may be missing something.

image

aiko-chan-ai commented 2 years ago

Hi @aiko-chan-ai. Thank you for the clarification. Just to confirm, are you expecting the response from the below to be https://discordjs-self-v13.netlify.app/#/docs/docs/main/typedef/InteractionResponseBody? It looks like it may be set to return a string, but I may be missing something.

image

you can try with a simple command. If you are sure you are installing the latest version, it will be an object. The older version would be Snowflake, a form of string

archubbuck commented 2 years ago

Hi @aiko-chan-ai. Thank you for the clarification. Just to confirm, are you expecting the response from the below to be https://discordjs-self-v13.netlify.app/#/docs/docs/main/typedef/InteractionResponseBody? It looks like it may be set to return a string, but I may be missing something. image

you can try with a simple command. If you are sure you are installing the latest version, it will be an object. The older version would be Snowflake, a form of string

I definitely have the latest version, but it's still picking it up as returning a string. Am I overlooking something simple?

image

archubbuck commented 2 years ago

@aiko-chan-ai, I checked the tar source of the latest release and the command is still using Snowflake:

image

aiko-chan-ai commented 2 years ago

@aiko-chan-ai, I checked the tar source of the latest release and the command is still using Snowflake:

image

I will change it in 2.3.76 (probably in the next 15 minutes)

aiko-chan-ai commented 2 years ago

fixed: https://github.com/aiko-chan-ai/discord.js-selfbot-v13/commit/98467dc92dbf4cf0e3f6662320b924a74bc7dff3 actually the version on release is not the latest version (I'm pretty lazy to update them)

archubbuck commented 2 years ago

Thank you sir :)

archubbuck commented 2 years ago

@aiko-chan-ai, can you add me on Discord? I have a quick follow-up question.

Ries#2132

aiko-chan-ai commented 2 years ago

@aiko-chan-ai, can you add me on Discord? I have a quick follow-up question.

Ries#2132

yep