You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

samples.md 511 B

123456789101112131415161718192021222324
  1. ---
  2. title: Samples
  3. ---
  4. # Samples
  5. >[!NOTE]
  6. >All of these samples assume you have `_client` defined as a `DiscordSocketClient`.
  7. #### Changing the bot's avatar
  8. [!code-csharp[Bot Avatar](samples/faq/avatar.cs)]
  9. #### Changing the bot's status
  10. [!code-sharp[Bot Status](samples/faq/status.cs)]
  11. #### Sending a message to a channel
  12. [!code-csharp[Message to Channel](samples/faq/send_message.cs)]
  13. #### Retrieving an IGuild from an IUserMessage
  14. [!code-csharp[Message to Guild](samples/faq/guild_from_message.cs)]