Rapptz / discord.py

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

how to do???? #536

Closed ScttB closed 7 years ago

ScttB commented 7 years ago

So, say I want to send_message to a server. HOW DO I SPECIFY THE SERVER AND CHANNEL WITHOUT GETTING AN ERROR?!?!

Phxntxm commented 7 years ago

http://discordpy.readthedocs.io/en/latest/api.html#discord.Client.get_channel http://discordpy.readthedocs.io/en/latest/api.html#discord.Client.get_server

Or if you have a message reference and you want the server/channel the message was sent from http://discordpy.readthedocs.io/en/latest/api.html#discord.Message.channel http://discordpy.readthedocs.io/en/latest/api.html#discord.Message.server

It's all in the docs.

ScttB commented 7 years ago

How do I get an ID?

Rapptz commented 7 years ago

For future references, this isn't how you open an issue. Have some sense of professionalism.

If you want to get help for basic things I suggest going to the help server in https://discord.gg/discord-api

ScttB commented 7 years ago

(there should be a easy to understand how-to thing for this library, because I do know moderately well how to use python...)