Deleted FAQ

this is sloppy and doesn't properly explain anything
This commit is contained in:
Christopher F
2017-04-03 16:26:58 -04:00
parent b3c6a06500
commit b4c3427ed1
4 changed files with 0 additions and 36 deletions

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)]

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);
}

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. */
}

View File

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