shortener-bot/DPP/docpages/example_programs/the_basics/private-messaging.md

618 B

\page private-messaging Sending private messages

Sometimes it's simply not enough to ping someone in a server with a message, and we get that. That's why you can private message people! This tutorial will cover how to make a command that will either message the author of the command or message a specified user!

\note This tutorial makes use of callbacks. For more information about that, visit \ref callback-functions "Using Callback Functions".

\include{cpp} private_messaging.cpp

That's it! Now, you should have something like this:

\image html privatemessageexample.png \image html privatemessageexample2.png