Deleted FAQ
this is sloppy and doesn't properly explain anything
This commit is contained in:
@@ -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)]
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
public async Task ChangeAvatar()
|
|
||||||
{
|
|
||||||
var fileStream = new FileStream("./newAvatar.png", FileMode.Open);
|
|
||||||
await _client.CurrentUser.ModifyAsync(x => x.Avatar = fileStream);
|
|
||||||
}
|
|
||||||
@@ -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. */
|
|
||||||
}
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
public async Task ModifyStatus()
|
|
||||||
{
|
|
||||||
await _client.SetStatusAsync(UserStatus.Idle);
|
|
||||||
await _client.SetGameAsync("Type !help for help");
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user