Rapptz / discord.py

An API wrapper for Discord written in Python.
http://discordpy.rtfd.org/en/latest
MIT License
14.7k stars 3.74k forks source link

NameError: name 'change_server' is not defined #2032

Closed McCrafterIV closed 5 years ago

McCrafterIV commented 5 years ago

Summary

I want to change the server name of one Server, but that not work's. After a look in the client.py I see that in change_server the name is not defined

Reproduction Steps

Expected Results

client.edit_server(server, name="Test") No Output and no changes

Checklist

System Information

MusicOnline commented 5 years ago

It's a coroutine. await it. Side note, change_server was never a thing. Another side note, are you sure your Python version is really 3.7? I'm pretty sure you would've installed through PyPI, in which using 3.7 isn't possible.

McCrafterIV commented 5 years ago

opps...thanks @MusicOnline my fault

Harmon758 commented 5 years ago

See https://discordpy.readthedocs.io/en/latest/api.html#discord.Client.edit_server

For future issues, please specify your exact version of discord.py, as the current "newest" version is v1.0.0a1791+g4ec7213 on the rewrite branch, and you seem to be using the async branch. For future questions like this, you should join either the official discord.py server or the Discord API server for help, as the README also links.