Update Documentation to be compatible with Beta2
this one took a while
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
public async Task ChangeAvatar()
|
||||
{
|
||||
var fileStream = new FileStream("./newAvatar.png", FileMode.Open);
|
||||
await (await _client.GetCurrentUserAsync()).ModifyAsync(x => x.Avatar = fileStream);
|
||||
await _client.CurrentUser.ModifyAsync(x => x.Avatar = fileStream);
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
public async Task MessageReceived(IMessage msg)
|
||||
{
|
||||
var guild = (msg.Channel as IGuildChannel)?.Guild;
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
public async Task SendMessageToChannel(ulong ChannelId)
|
||||
{
|
||||
var channel = await _client.GetChannelAsync(ChannelId) as IMessageChannel;
|
||||
var channel = _client.GetChannel(ChannelId) as ISocketMessageChannel;
|
||||
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. */
|
||||
}
|
||||
Reference in New Issue
Block a user