Browse Source

Deleted FAQ

this is sloppy and doesn't properly explain anything
tags/1.0.0-rc2
Christopher F 8 years ago
parent
commit
b4c3427ed1
4 changed files with 0 additions and 36 deletions
  1. +0
    -20
      docs/guides/samples.md
  2. +0
    -5
      docs/guides/samples/faq/avatar.cs
  3. +0
    -6
      docs/guides/samples/faq/send_message.cs
  4. +0
    -5
      docs/guides/samples/faq/status.cs

+ 0
- 20
docs/guides/samples.md View File

@@ -1,20 +0,0 @@
---
title: Samples
---

# Samples

>[!NOTE]
>All of these samples assume you have `_client` defined as a `DiscordSocketClient`.

#### Changing the bot's avatar

[!code-csharp[Bot Avatar](samples/faq/avatar.cs)]

#### Changing the bot's status

[!code-csharp[Bot Status](samples/faq/status.cs)]

#### Sending a message to a channel

[!code-csharp[Message to Channel](samples/faq/send_message.cs)]

+ 0
- 5
docs/guides/samples/faq/avatar.cs View File

@@ -1,5 +0,0 @@
public async Task ChangeAvatar()
{
var fileStream = new FileStream("./newAvatar.png", FileMode.Open);
await _client.CurrentUser.ModifyAsync(x => x.Avatar = fileStream);
}

+ 0
- 6
docs/guides/samples/faq/send_message.cs View File

@@ -1,6 +0,0 @@
public async Task SendMessageToChannel(ulong ChannelId)
{
var channel = _client.GetChannel(ChannelId) as SocketMessageChannel;
await channel?.SendMessageAsync("aaaaaaaaahhh!!!")
/* ^ This question mark is used to indicate that 'channel' may sometimes be null, and in cases that it is null, we will do nothing here. */
}

+ 0
- 5
docs/guides/samples/faq/status.cs View File

@@ -1,5 +0,0 @@
public async Task ModifyStatus()
{
await _client.SetStatusAsync(UserStatus.Idle);
await _client.SetGameAsync("Type !help for help");
}

Loading…
Cancel
Save