Discord.py: Api Oauth login

Created on 8 Apr 2016  路  5Comments  路  Source: Rapptz/discord.py

Utilizing a bot account does not allow for the bot to connect, is there a workaround?

Traceback (most recent call last):
  File "test.py", line 113, in <module>
    client.run('REDACTED', 'REDACTED')
  File "/usr/local/lib/python3.4/dist-packages/discord/client.py", line 590, in run
    self.loop.run_until_complete(self.start(email, password))
  File "/usr/lib/python3.4/asyncio/base_events.py", line 276, in run_until_complete
    return future.result()
  File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
    raise self._exception
  File "/usr/lib/python3.4/asyncio/tasks.py", line 235, in _step
    result = coro.send(value)
  File "/usr/local/lib/python3.4/dist-packages/discord/client.py", line 561, in start
    yield from self.login(email, password)
  File "/usr/local/lib/python3.4/dist-packages/discord/client.py", line 469, in login
    raise LoginFailure('Improper credentials have been passed.')
discord.errors.LoginFailure: Improper credentials have been passed.

Most helpful comment

Client secret is not the same thing as a token

https://discord.is-serious.business/6fd481.mp4

All 5 comments

+1

You do not login with oauthid/client secret - you just use the token. https://github.com/Rapptz/discord.py/pull/140 has a possible implementation

Done.

Use client.login('token') or client.run('token') to do so.

from discord.ext.commands import Bot

my_bot = Bot(command_prefix="!")

bot_token = 'client_secret_from_bot_page'

if __name__ == '__main__':
    my_bot.run(bot_token)

gives "discord.errors.LoginFailure: Improper token has been passed."

Hasn't it been resolved?

Client secret is not the same thing as a token

https://discord.is-serious.business/6fd481.mp4

Was this page helpful?
0 / 5 - 0 ratings

Related issues

imayhaveborkedit picture imayhaveborkedit  路  58Comments

Mercurial picture Mercurial  路  22Comments

marcoshuck picture marcoshuck  路  16Comments

AceKiron picture AceKiron  路  23Comments

Shea4 picture Shea4  路  21Comments