Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Client' object has no attribute 'get_server' #5

Open
vinnytroia opened this issue Sep 4, 2019 · 2 comments
Open

'Client' object has no attribute 'get_server' #5

vinnytroia opened this issue Sep 4, 2019 · 2 comments

Comments

@vinnytroia
Copy link

Hi - i seem to be logging in fine using my toke, but i always get this error. Any ideas?

Logged in as: **

Ignoring exception in on_ready
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/discord/client.py", line 270, in _run_event
await coro(*args, **kwargs)
File "scrape_channels.py", line 35, in on_ready
SERVER = client.get_server(SERVER_ID)
AttributeError: 'Client' object has no attribute 'get_server'

@southbridge-fur
Copy link
Owner

This may be due to an update with the library imported for interfacing with the Discord API. Currently I haven't had the time needed to solve this issue. Feel free to figure it out and submit a pull request.

@empireshades
Copy link

I think this may have been renamed to get_guild(id) as per:

discord.py V1.0 notes

get_guild in the API docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants