fetch (`https://discordapp.com/api/v6/channels/${/ * Channel ID * /}/messages`, {
            method: 'POST',
            body:/​​* data * /,
            headers: {
                'Authorization': authorization,
                'Content-Type': 'application/json'
    ... (omitted)

I developed a program to send discord message with javascirpt which is not node.js,
It is a violation of discord terms of use because other people use Authorization (access token). They said.
Is it really a violation? If i am familiar with Discord, please let me know.

  • Answer # 1

    Check it yourself.

    Terms of service-Discord
    Discord Developer Terms of Service

    Google Translate

  • Answer # 2

    Because it was restricted by CORS before the agreement, it can't be used from the browser JS ...
    It should be technically impossible, not prohibited by convention.

    Discord is a lot of beginners, so you can ignore other people's stories.
    It's just a good introduction to programming, so there's nothing wrong with creating a bot.