Browse Source

Add hardcode token notice in sample

pull/826/head
Hsu Still 8 years ago
parent
commit
099c156811
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      docs/guides/commands/samples/command_handler.cs

+ 1
- 0
docs/guides/commands/samples/command_handler.cs View File

@@ -19,6 +19,7 @@ public class Program
_client = new DiscordSocketClient();
_commands = new CommandService();

// Avoid hard coding your token. Use an external source instead in your code.
string token = "bot token here";

_services = new ServiceCollection()


Loading…
Cancel
Save