public async Task open([Remainder, Summary("File name")] string filename) { if (characters == null) { characters = new List <CharacterNode>(); } CharacterNode old = findCharacter(Context.User); if (old != null) { characters.Remove(old); } CharacterNode character = new CharacterNode("temp"); int error = character.openCharacter(filename, Context.User); if (error == 2) { await Context.Channel.SendMessageAsync("You are not the owner of that file"); } else if (error == 3) { await Context.Channel.SendMessageAsync("I could not locate that file."); } else { await Context.Channel.SendMessageAsync("I successfully loaded the file. Enter **!c view** to view it."); } characters.Add(character); }